我从UIPopover中的按钮打开photo library
,但照片库会显示在popover后面。
我现在提出popover。
[self.commentsPopover presentPopoverFromRect:rectInSuperview inView:self.superview permittedArrowDirections:UIPopoverArrowDirectionLeft | UIPopoverArrowDirectionRight animated:YES];
self.commentsPopover
是UIPopoverController
。
显示popover后,我正在弹出窗口中的按钮打开照片库。
self.attachmentPicker = [[ELCImagePickerController alloc] initImagePicker];
self.attachmentPicker.maximumImagesCount = MAX_ATTACHMENT_COUNT;
self.attachmentPicker.returnsOriginalImage = NO; //Only return the fullScreenImage, not the fullResolutionImage
self.attachmentPicker.imagePickerDelegate = self;
self.attachmentsView.delegate = self;
self.attachmentPicker.modalInPopover=YES;
self.attachmentPicker.modalPresentationStyle = UIModalPresentationFormSheet;
[MKGlobals presentViewController:self.attachmentPicker animated:YES completion:^{
self.attachmentPicker = nil;
}];
这会显示弹出窗口后面的照片库。
按照图片描述方案。
此代码在iOS中工作正常< 8.x中。
任何帮助将不胜感激。