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
// returns a MKCoordinateRegion that encompasses an array of MKAnnotations | |
- (MKCoordinateRegion)regionForAnnotations:(NSArray *)annotations { | |
CLLocationDegrees minLat = 90.0; | |
CLLocationDegrees maxLat = -90.0; | |
CLLocationDegrees minLon = 180.0; | |
CLLocationDegrees maxLon = -180.0; | |
for (id <MKAnnotation> annotation in annotations) { |
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
(* | |
Generate a UIColor with the colour panel from right inside Xcode | |
To install place in ~/Library/Scripts/Applications/Xcode/ and enable the Script | |
menu in AppleScript preferences (or use FastScripts) | |
Limitations: | |
Doesn't support alpha values |
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
property iphone_portrait : {w:320, h:480} | |
property iphone_landscape : {w:480, h:320} | |
property iphone_2x_portrait : {w:640, h:960} | |
property iphone_2x_landscape : {w:960, h:640} | |
property ipad_portrait : {w:768, h:1024} | |
property ipad_landscape : {w:1024, h:768} | |
property ipad_2x_portrait : {w:1536, h:2048} | |
property ipad_2x_landscape : {w:2048, h:1536} | |
tell application id "com.adobe.Photoshop" |