照片库显示在popover后面

时间:2014-11-27 14:38:19

标签: ios objective-c ipad ios8

我从UIPopover中的按钮打开photo library,但照片库会显示在popover后面。

我现在提出popover。

[self.commentsPopover presentPopoverFromRect:rectInSuperview inView:self.superview permittedArrowDirections:UIPopoverArrowDirectionLeft | UIPopoverArrowDirectionRight animated:YES];

self.commentsPopoverUIPopoverController

显示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;
}];

这会显示弹出窗口后面的照片库。

按照图片描述方案。 enter image description here

此代码在iOS中工作正常< 8.x中。

任何帮助将不胜感激。

0 个答案:

没有答案