objective c - Modal View Controller Size -


i trying display modal view controller, keep navigation bar displaying on ipad. i've tried different presentation styles none work. possible size it, or display within right on top of view, instead above whole view controller?

edit: code added:

- (void)buttonpressed:(id)sender {     rkwebviewcontroller *webviewcontroller = [[rkwebviewcontroller alloc] initwithnibname:nil bundle:nil];     webviewcontroller.request = [nsurlrequest requestwithurl:_link];     webviewcontroller.webview.delegate = self;     webviewcontroller.shoulddisplaydonebutton = yes;     webviewcontroller.modalpresentationstyle = uimodalpresentationcurrentcontext;     [self presentmodalviewcontroller:webviewcontroller animated:yes]; } 

use -

- (void)buttonpressed:(id)sender {     rkwebviewcontroller *webviewcontroller = [[rkwebviewcontroller alloc] initwithnibname:nil bundle:nil];     webviewcontroller.request = [nsurlrequest requestwithurl:_link];     webviewcontroller.webview.delegate = self;     webviewcontroller.shoulddisplaydonebutton = yes;      uinavigationcontroller *navcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:webviewcontroller];     [webviewcontroller release];      navcontroller.modalpresentationstyle = uimodalpresentationcurrentcontext;     [self presentmodalviewcontroller:navcontroller animated:yes];     [navcontroller release]; 

}


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -