I already posted this question, but this time I am posting the code. So I have a uiviewController, and in the viewDidLoad of this viewController, I hide the backButton on the navigationController. After that, I click on the new uiviewcontroller and I set the pad to visible in viewDidLoad, but the lining is still hidden ...
Implementation of the first uiviewcontroller
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationItem.title = @"page2page2page2page2page2";
self.navigationItem.hidesBackButton = TRUE;
}
-(IBAction)click
{
page3 *controller = [[page3 alloc] init];
[self.navigationController pushViewController:controller animated:YES];
[page3 release];
}
Page implementation 3
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationItem.title = @"page3";
self.navigationItem.hidesBackButton = FALSE;
}
and on page 3 there is no lining, but space is created for the button, because the “page 3” tile is on the right and not in the center ... all this happens with ios 4.2
THX
source
share