ios,swift,mapkit,xcode6.0.1,mkuserlocation
You have to keep the reference to CLLocationManager. You have to wait locationManager(_:didChangeAuthorizationStatus:) delegate method called, before .startUpdatingLocation() and showsUserLocation = true. According to the document: NSLocationWhenInUseUsageDescription value type is String. Try: class ViewController: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate { @IBOutlet weak var mapView: MKMapView! var locationManager = CLLocationManager() // MARK:...
The other answers in this thread should solve your problem. However, if you find that [self.tableView reloadData] isn't refreshing the data in your UITableView, check out my suggestion on this thread: Fails to call delegate/datasource methods in UITableView implementation I'm not sure if this is a quirk with iOS 8,...