我的应用程序在iOS 5.1之前完美运行.这是一个UISplitviewController用UINavigationController在左侧窗格中,并更新取决于内作出的选择详细信息窗格UINavigationController.
从左侧替换弹出的新的滑入,iOS 5.1特有的工作; 它看起来不太好,但它确实有效.
似乎被打破的是从纵向按钮显示"弹出".它会导致异常 - 'NSInternalInconsistencyException', reason: 'Unknown direction passed to _popoverViewSizeForContentSize:arrowDirection:'
我试图覆盖显示弹出窗口的方法,如下所示:
-(void)splitViewController:(UISplitViewController *)svc popoverController:(UIPopoverController *)pc willPresentViewController:(UIViewController *)aViewController
{
[self.popoverController presentPopoverFromBarButtonItem:self.masterPopoverButtonItem permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}
但我仍然得到同样的错误.有人可以帮忙吗?