a noob question here:
any ideas why this code:
UIViewController* popoverviewController = [[UIViewController alloc]init];
UIView* popoverView = [[UIView a
You cannot use a UIPopoverController with iPhone. U will need to detect which device idiom u are using and present the appropriate viewController type at runtime.
The project here provides some examples. The basic gist of it is the following:
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
/* use iPhone related viewController via either presentModal or via UIViewController containment */
}else{
/* Using an iPad use a popoverController */
}
Good Luck.