|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
BackBarButton not appearing in custom navigation bar. any fix?
hi, there is something that bugs me in Xcode. i'm creating an app which uses UiNavigationController however i don't want the navigation bar to appear in the initial window when the app is first loaded. i tried clicking on the Navigation Controller (the one before the root view controller) and in the inspector i chose "none" in the top bar drop down menu (in the attributes inspector). the navigation bar disappears. then i added a custom navigation bar from the library to the view that i actually want the bar to appearing, in order to go back (you can think of it ad the detailed view). however when i run the app the back button doesn't appear although i changed it's title from the inspector and the navigation bar with the title only appears. i feel like i'm changing the back button of the original navigation bar and not the new one. does anyone know how to solve this problem? is there a way to use a navigation bar in like second level or third level view of a navigation controller without letting it appear in the root view controller? thank you! P.S: if you want a visual explanation of my case just create a new project in Xcode with a master-detail template.
|
|
|
|
0
|
|
|
#2 |
|
Try have more white space between your questions next time. You make your intrigue hard to read, and confusing.
Code:
- (void)viewWillAppear: (BOOL)animated
{
[self.navigationController setNavigationBarHidden:YES animated:animated];
[super viewWillAppear:animated];
}
- (void)viewWillDisappear: (BOOL)animated
{
[self.navigationController setNavigationBarHidden:NO animated:animated];
[super viewWillDisappear:animated];
}
__________________
-= My Macs =-
*2011 Mac Mini, 2.7 GHz i7, 16gb RAM, 256gb SSD* *2012 Macbook Air 1.8 GHz i5, 8gb RAM, 128 SSD* Last edited by dejo; Feb 23, 2013 at 09:51 PM. Reason: Please use [code] tags. |
|
|
|
0
|
|
|
#3 | |
|
Quote:
Last edited by dejo; Feb 23, 2013 at 09:52 PM. Reason: Quoted post edited. |
||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 09:24 PM.







Linear Mode
