How to get an ALAsset URL from a PHAsset?

Create the assetURL by leveraging the localidentifier of the PHAsset. Example: PHAsset.localidentifier returns 91B1C271-C617-49CE-A074-E391BA7F843F/L0/001 Now take the 32 first characters to build the assetURL, like: assets-library://asset/asset.JPG?id=91B1C271-C617-49CE-A074-E391BA7F843F&ext=JPG You might change the extension JPG depending on the UTI of the asset (requestImageDataForAsset returns the UTI), but in my testing the extensions of the assetURL seems to be … Read more

Unable to boot iOS 8 Simulator

The main cause of this error is that DYLD_INSERT_LIBRARIES is set. I suggest you unset DYLD_INSERT_LIBRARIES (likely in /etc/launchd.conf) or otherwise uninstall the product that set it, and then reboot. OS X Yosemite has a software change to deal with this situation, so if you need the product that was setting DYLD_INSERT_LIBRARIES, I suggest you … Read more

Displaying search bar in navigation bar in iOS 8

According to Apple : UISearchDisplayController is deprecated in iOS 8. (Note that UISearchDisplayDelegate is also deprecated.) To manage the presentation of a search bar and display search results in iOS 8 and later, instead use UISearchController. The UISearchController class defines an interface that manages the presentation of a search bar in concert with the search … Read more