When I pass my UINavigationController to UIPopOver and set its popOverContentSize property, it remains in effect for only first view. When I navigate to next view, the popOverContent size again expands to full view which is unwanted. How can I restrict the constant size of popOver for all views in navigation controller?
- (void)selectTextStyle:(id)sender { DJTextStyleMasterViewController *textStyle = [[DJTextStyleMasterViewController alloc] init]; self.navController = [[UINavigationController alloc] initWithRootViewController:textStyle]; UIPopoverController *popOver = [[UIPopoverController alloc] initWithContentViewController:self.navController]; [popOver setDelegate:self]; [popOver setPopoverContentSize:CGSizeMake(320, 400)]; [popOver presentPopoverFromBarButtonItem:self.textStyleButton permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; [textStyle release]; }