Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Present Modal View Controller On Top of UINavigationController

I have my app that is below a UINavigationController and therefore below a UINavigationBar. I want to present a Modal View Controller on top of this UINavigationBar because the controller I wrote doesn't make sense if it's below it (that is, I want to hide the navigation bar when showing this view controller).

Presenting it with this code:

    ukc = [[UnlockKeyboardViewController alloc] init];
    [self presentModalViewController:ukc animated:NO];

Cause the Modal view controller to be below the UINavigationBar. That UINavigationBar shouldn't show up when I show this modal view. How can I go around that?

PS: This is a jailbreak app, so there's no Interface Builder.

like image 668
Andy Ibanez Avatar asked Jan 17 '23 00:01

Andy Ibanez


1 Answers

[self.navigationController presentModalViewController:ukc animated:NO];
like image 117
note173 Avatar answered Jan 18 '23 23:01

note173