Getting this error message:
Presenting view controllers on detached view controllers is discouraged
This is happening because you’re not supposed to perform a segue until viewDidAppear
dispatch_async(dispatch_get_main_queue()) { | |
self.someMethod(self.someProperty) | |
} |
func mapView(mapView: MKMapView!, viewForAnnotation annotation: MKAnnotation!) -> MKAnnotationView!{ | |
// user location | |
if annotation is MKUserLocation { | |
(annotation as! MKUserLocation).title = "" | |
// use blue pulsy instead of pin | |
return nil | |
} | |
// other pins | |
return mapView.dequeueReusableAnnotationViewWithIdentifier("pin") as? MKPinAnnotationView | |
} |
tabBarController?.tabBar.selectedImageTintColor = .redColor() |