tags:

views:

45

answers:

1

I want to show the UIBarButtonItem and UINavigationItem through code in the method viewWillAppear

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