I got application that is using SplitViewController and popover, standard stuff. It worked fine for 10 releases starting with sdk 3.0. It still compiles and works fine in simulator on Snow Leopard, Xcode 4.2 and sdk 5.0. However, when running on Lion, Xcode 4.3 and sdk 5.1 it throws error:
Assertion failure in -[_UISlidingPopoverLayoutInfo _popoverViewSizeForContentSize:arrowDirection:], /SourceCache/UIKit_Sim/UIKit-1914.84/_UIPopoverLayoutInfo.m:160
* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unknown direction passed to _popoverViewSizeForContentSize:arrowDirection:'
popover is only initiate as part of the class:
@interface NewsDetailViewController : UIViewController <UIActionSheetDelegate, UISplitViewControllerDelegate, UIWebViewDelegate>{
RssFunAppDelegate * _appDelegate;
UITextView * _titleTextView;
UINavigationBar * _navigationBar;
UIPopoverController * _popContr;
UIWebView * _webView;
UIActivityIndicatorView * _activityIndicator;
}
@implementation
where you call the popover. – WrightsCS