Pop Over Control on iPad Problem !

Posted by Momeks on Stack Overflow See other posts from Stack Overflow or by Momeks
Published on 2010-05-20T20:56:50Z Indexed on 2010/05/20 21:00 UTC
Read the original article Hit count: 424

Filed under:
|
|

Hi , i try to load a view via UIPopover but my app crash after tap the popover button , i tried to solve it but i don't understand ! here is my code :

-

(IBAction)calendarPopUp:(id)sender {

 PopViewController *cal = [[PopViewController alloc]init];
//The compiler tells me the problem comes from this line :
 UIPopoverController *popOver = [[UIPopoverController alloc] initWithContentViewController:cal];
 [popOver setDelegate:self];
 [popOver presentPopoverFromRect:CGRectMake(113, 64, 226, 129) inView:self permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];
 [popOver setPopoverContentSize:CGSizeMake(226, 129)];
}

© Stack Overflow or respective owner

Related posts about ipad

Related posts about SDK