开发者

NSException error seems to occur randomly

This code was working fine, now for some reason I'm getting an NSException error that's generating a SIGABRT at the following line of code...

 self.popoverController = [[[UIPopoverController alloc] initWithContentViewController:wbPopOverController] autorelease];

Here's the method it's located in...

-(IBAction)showPop:(id)sender {

//close any open popovers
[self.popoverController dismissPopoverAnimated:NO];

// Initialize wbPopUpViewController
PopoverAi开发者_运维百科rcraftClass *wbPopOverController = [[PopoverAircraftClass alloc] initWithNibName:@"PopoverAircraftClass" bundle:[NSBundle mainBundle]];
wbPopOverController.contentSizeForViewInPopover = CGSizeMake(175, 216);
wbPopOverController.delegate = self; //for update    

[wbPopOverController setAircraftList:aircraftList withCurrentValue:activeRegistration];

// Object converted to UIPopOverController (retained so we can reference it)
self.popoverController = [[[UIPopoverController alloc] initWithContentViewController:wbPopOverController] autorelease];
self.popoverController.passthroughViews = [NSArray arrayWithObject: self.view];

[self.popoverController presentPopoverFromRect:[sender frame] inView:self.layoutViewIB permittedArrowDirections:UIPopoverArrowDirectionUp animated:NO];
[wbPopOverController release];
}

I'm new at this as you can probably tell. Any ideas as to what's generating the NSException?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜