Note that there are some explanatory texts on larger screens.

plurals
  1. PONavigation bar won't hide
    primarykey
    data
    text
    <p>I'm trying to figure out why I can't hide the navigation bar in my custom modal navigation controller. I've tried adding this line: </p> <pre><code>self.navigationController.navigationBarHidden = YES; </code></pre> <p>I've placed it in the viewdidload, the initializer, but it just won't hide the bar. Here is my code for the custom modal:</p> <pre><code>-(void)launchCustomModal:(id)sender{ UIButton *buttonClicked = (UIButton *)sender; int selection; selection = buttonClicked.tag; if (selection == 1) { modalViewController = [[UINavigationController alloc]initWithRootViewController:[[artistsViewController alloc]initWithNibName:nil bundle:nil]]; } SDJAppDelegate *app = (SDJAppDelegate *) [UIApplication sharedApplication].delegate; UIWindow *appWindow = [app window]; UIView *windowView = [[appWindow subviews] objectAtIndex:0]; CGRect rect = [[UIScreen mainScreen] applicationFrame]; syncView = [[UIView alloc]initWithFrame: rect]; CGRect frame = syncView.frame; frame.origin.y = -20.0; syncView.frame = frame; CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setType:kCATransitionMoveIn]; [animation setSubtype:kCATransitionFromBottom]; [animation setDuration:0.50]; [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; [[syncView layer] addAnimation:animation forKey:kCATransition]; [windowView addSubview:syncView]; [syncView addSubview:modalViewController.view]; [modalViewController viewDidLoad]; } </code></pre> <p>Anyone have any ideas??</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload