You need to make sure you have added both Photos and PhotosUI frameworks in your project. Then import <PhotosUI/PhotosUI.h> header in your class file and call [[PHPhotoLibrary sharedPhotoLibrary] presentLimitedLibraryPickerFromViewController:self];
Topic:
Media Technologies
SubTopic:
Photos & Camera
Tags: