Hi,
I have a navigation app and when I start the app, the first view is a table;
on it I have successfully added a "edit" and "about" button following the guide.
Now when I click on "about" I open a new view (derived from UIViewController") and I try to add a new item on the navigation bar to customize the behaviour but the button on this second view doesn't appear...neither the title of the view
I put
Code:
- (void)viewDidLoad {
self.title= @"About"
UIBarButtonItem *settingsButton = [[[UIBarButtonItem alloc]
initWithTitle:@"Settings"
style:UIBarButtonItemStylePlain
target:self
action:@selector(openSettings)] autorelease];
self.navigationItem.leftBarButtonItem = settingsButton;
[settingsButton release];
[super viewDidLoad];
}
Where am I wrong?