Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
alauria33 authored and alauria33 committed Apr 2, 2016
1 parent 4ea6f35 commit 54bb7a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GrouPics/Create3ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ class Create3ViewController: UIViewController, CLLocationManagerDelegate {
func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
var locValue:CLLocationCoordinate2D = manager.location!.coordinate
print("locations = \(locValue.latitude) \(locValue.longitude)")
let center = CLLocationCoordinate2D(latitude: locValue.latitude, longitude: locValue.coordinate.longitude)
let region = MKCoordinateRegion(center: center, span: MKCoordinateSpan(latitudeDelta: 0.01, longitudeDelta: 0.01))

self.map.setRegion(region, animated: true)
}

func switchChanged(sender:UISwitch!) {
Expand Down

0 comments on commit 54bb7a7

Please sign in to comment.