i am developing iPad app which supports Landscape only
What i want to do is, i want to open photos library on button click. Here is my code snippet,
UIImagePickerController * picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
picker.modalPresentationStyle = UIModalPresentationCurrentContext;
when i wrote this it doesn't open photos library :( I don't know where i am doing mistake
Please help and thanks in adavance.
Try this: