在上面的图片中,我使用导航栏获得此弹出窗口,但导航栏与内容重叠,我找不到使内容位于导航栏下方的方法。弹出窗口的内容是从设备库中提取的。
这是获取内容并显示内容的代码:
UIImagePickerController *photosMedia = [[UIImagePickerController alloc] init];
photosMedia.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
photosMedia.delegate = self;
popoverController=[[UIPopoverController alloc] photosMedia];
popoverController.delegate = self;
popoverController.popoverContentSize = CGSizeMake(300, 400); // 768 400
imagePickerController.modalPresentationStyle = UIModalPresentationFullScreen;
[popoverController presentPopoverFromRect:btnPhotos.bounds
inView:btnPhotos
permittedArrowDirections:UIPopoverArrowDirectionAny
animated:YES];