-[UIPopoverController initWithContentViewController:]
I am having difficulties
I have a signal: "SIGABRT"
here is the output--
2011-10-10 20:02:48.463 LastVisited[2999:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIPopoverController initWithContentViewController:] called when not running under UIUserInterfaceIdiomPad.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00dc25a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f16313 objc_exception_throw + 44
2 CoreFoundation 0x00d7aef8 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x00d7ae6a +[NSException raise:format:] + 58
4 UIKit 0x00360d7b -[UIPopoverController initWithContentViewController:] + 150
5 LastVisited 0x00002363 -[LastVisitedViewController viewDidLoad] + 195
6 UIKit 0x000c4089 -[UIViewController view] + 179
7 UIKit 0x00037d42 -[UIWindow addRootViewControllerViewIfPossible] + 51
8 LastVisited 0x00001ef7 -[LastVisitedAppDelegate application:didFinishLaunchingWithOptions:] + 135
9 UIKit 0x00014c89 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1163
10 UIKit 0x00016d88 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 439
11 UIKit 0x00021617 -[UIApplication handleEvent:withNewEvent:] + 1533
12 UIKit 0x00019abf -[UIApplication sendEvent:] + 71
13 UIKit 0x0001ef2e _UIApplicationHandleEvent + 7576
14 GraphicsServices 0x00ffb992 PurpleEventCallback + 1550
15 CoreFoundation 0x00da3944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
16 CoreFoundation 0x00d03cf7 __CFRunLoopDoSource1 + 215
17 CoreFoundation 0x00d00f83 __CFRunLoopRun + 979
18 CoreFoundation 0x00d00840 CFRunLoopRunSpecific + 208
19 CoreFoundation 0x00d00761 CFRunLoopRunInMode + 97
20 UIKit 0x000167d2 -[UIApplication _run] + 623
21 UIKit 0x00022c93 UIApplicationMain + 1160
22 LastVisited 0x00001e39 main + 121
23 LastVisited 0x00001db5 start + 53
)
terminate called after throwing an instance of 'NSException'
and here is were UIPopoverController is
-(void)viewDidLoad
{
optionsViewController = [[OptionsViewControlleralloc] init];
popoverController = [[UIPopoverControlleralloc] initWithContentViewController:optionsViewController];
popoverController.popoverContentSize = CGSizeMake(250, 300);
}
Xcode4-OTHER, Mac OS X (10.6.7)