Back Button on navigation in ios -
i using code show new view _launcherview
on selfview
.
its working when comes button occur, want hide it,can body tell me how can it?
-(void)viewwillappear:(bool)animated { [[uiapplication sharedapplication] endreceivingremotecontrolevents]; [super viewdidappear:animated]; frompopvc=no; _launcherview.frame=self.view.bounds; uiinterfaceorientation curorientation = [[uiapplication sharedapplication] statusbarorientation]; if(curorientation==uiinterfaceorientationportrait ||curorientation==uiinterfaceorientationportraitupsidedown) { //code _launcherview.columncount=3; } if (curorientation==uiinterfaceorientationlandscaperight ||curorientation==uiinterfaceorientationlandscapeleft ) { _launcherview.columncount=6; } [atsceneglobals sharedatsceneglobals].mcachedcase=nil; [super viewwillappear:animated]; self.navigationitem.leftbarbuttonitem=nil; self.navigationitem.hidesbackbutton=yes; [atsceneglobals hideactivityview]; }
write below code want hide navigation bar button
-(void)viewwillappear:(bool)animated{ [super viewwillappear:yes]; self.navigationitem.hidesbackbutton =yes; }
ios
No comments:
Post a Comment