我有这个方法(别人写的!)
- (IBAction)showMasterPopover:(id)sender
{
if (_hiddenPopoverController && !(_hiddenPopoverController.popoverVisible)) {
// Inform delegate.
if (_delegate && [_delegate respondsToSelector:@selector(splitViewController:popoverController:willPresentViewController:)]) {
[(NSObject <MGSplitViewControllerDelegate> *)_delegate splitViewController:self popoverController:_hiddenPopoverController willPresentViewController:self.masterViewController];
}
// Show popover.
[_hiddenPopoverController presentPopoverFromBarButtonItem:_barButtonItem permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}
else if (_hiddenPopoverController.popoverVisible)
{
[_hiddenPopoverController dismissPopoverAnimated:YES];
}
}
经过几个非常可重复的步骤
[_hiddenPopoverController presentPopoverFromBarButtonItem:_barButtonItem permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
使用以下内容使应用程序崩溃:
*** -[ServerFolderController respondsToSelector:]: message sent to deallocated instance 0x85a9080
这会在 iOS5.x 上崩溃,但不会在 iOS4 上崩溃。有任何想法吗 ?从仪器中我收集到有一个僵尸对象。
我难住了!谢谢