This extension to UIButton kerns the text in it’s titleLabel property.
Note, as of XCode 6.2, the UIButton type must be custom so that the UIButton is resized with the kerned text. Resizing behavior occurs without a call to sizeToFit() or invalidateIntrinsicContentSize().
Here is an extension to UIImage that adds a public method called resize(size:CGSize, completionHandler:(resizedImage:UIImage, data:NSData)->()). The image is resized on a global concurrent queue and the completion handler is called on the main queue with the new UIImage and image data. Good for resizing images before sending them to a server. The jpeg compression ratio should probably also be parameterized! Enjoy!
Use canOpenURL: to test if this is possible during run time. It is not possible on iOS 7. I also wonder if there are paths you can add after “app-settings:” to open specific app settings screens such as privacy. Please leave a comment if you have any information on this.
Here is a quick snippet that shows how to check for the existence of a sqlite file in the documents directory and how to copy the file from the app bundle to the documents directory if it does not exists. This should be done before adding the persistent store to the persistent store coordinator ensure that there is pre-populated data