I want to show the UIBarButtonItem
and UINavigationItem
through code in the method viewWillAppear
views:
45answers:
1
A:
You'll need to give a little more details, but probably you mean something like this:
UIBarButtonItem *btn = [[UIBarButtonItem alloc] initWithTitle: @"Back"
style: UIBarButtonItemStylePlain
target: self
action: @selector(backAction)];
self.navigationItem.leftBarButtonItem = btn;
[btn release];
Plamen Dragozov
2010-03-13 15:17:43