How to access iOS photo library / use Objective-C properly?

I used this code in 4.15 and was able to build and deploy to my iOS 10 device. However, whenever the “runSelectPhoto” method is executed the app crashes.

I’ve got the proper permissions in the pList file (NSPhotoLibraryUsageDescription) and the app requests permission correctly (which I allow).

EDIT: The crash is caused because the photo library requires the app be in portrait mode. If you change your app to run in portrait mode (Project Settings->iOS->Orientation) You have to select Support Portrait Orientation and deselect Landscape Left/Right.