This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tabBarController?.tabBar.selectedImageTintColor = .redColor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dispatch_async(dispatch_get_main_queue()) { | |
self.someMethod(self.someProperty) | |
} |
This assumes you have SwiftyJSON.
Start with a Dictionary
let paramsDictionary = [
"title": "foo",
"description": "bar"
OlderNewer