iphone - How to hide or remove navigation Bar at the top? -
this code successful excuted "terms , condition page" open. 1 problem face 1 navigation bar show on top of page. how hide or remove navigation bar @ top of page ?
clsmainpageappdelegate.m
#import "clsmainpageappdelegate.h" #import "clstermsandconditionviewcontroller.h" - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { uistoryboard *storyboard = [uistoryboard storyboardwithname:@"mainstoryboard" bundle:nil]; clstermsandconditionviewcontroller *ivc = [storyboard instantiateviewcontrollerwithidentifier:@"termsandconditioncontrol"]; uinavigationcontroller *navigationcontroller=[[uinavigationcontroller alloc] initwithrootviewcontroller:ivc]; self.window.rootviewcontroller=nil; self.window.rootviewcontroller = navigationcontroller; [self.window makekeyandvisible]; }
have read documentation? uinavigationcontroller class reference
[navigationcontroller setnavigationbarhidden:yes];
Comments
Post a Comment