ios - Present UIPopoverController with navigation controller -


i attempting present uipopovercontroller similar bookmark selector in safari title above , ability go , forward. found tutorial: http://mobiforge.com/designing/story/using-popoverview-ipad-app-development , have followed it, yet navigation bar not appearing should be. instead, appearing recessed in popover controller , not part of popover controller. below code have far. appreciated.

code:

- (ibaction)addapreplan:(id)sender {     if (![self.preplanpopovercontroller ispopovervisible]) {          // initiate popover controller         uitableviewcontroller *pp = [[uitableviewcontroller alloc] init];         pp.navigationitem.title = @"add preplan";         uinavigationcontroller *nav = [[uinavigationcontroller alloc] initwithrootviewcontroller:pp];         uipopovercontroller *popover = [[uipopovercontroller alloc] initwithcontentviewcontroller:nav];         popover.delegate = self;         self.preplanpopovercontroller = popover;     }     else {          // dissmiss popover         [self.preplanpopovercontroller dismisspopoveranimated:yes];     }      // present popover controller     [self.preplanpopovercontroller presentpopoverfrombarbuttonitem:self.addapreplanbutton permittedarrowdirections:uipopoverarrowdirectionany animated:yes]; } 


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -