我将 UIImagePickerController 作为 UIPopoverController 的内容视图控制器。我需要检测弹出框何时刚刚完成呈现(刚刚出现)。UIPopoverController 对此没有任何委托。我似乎也找不到检测 UIImagePickerController 的方法。(这适用于 iPad)
有什么建议么?
// UIImagePickerController let's the user choose an image.
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
self.popover = [[UIPopoverController alloc] initWithContentViewController:imagePicker];
self.popover.delegate = self;
[self.popover presentPopoverFromBarButtonItem:self.openPhotosButton permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];