I have a question to add a right button in navigation bar..
I have two views: View A and View B
I add a navigation bar to view A, after I used self.navigat
self.navigat
You can add the following code to your B controller's viewDidLoad method.
viewDidLoad
UIBarButtonItem *rightButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Title" style:UIBarButtonItemStyleDone target:self action:@selector(rightButtonAction:)]; self.navigationItem.rightBarButtonItem = rightButtonItem;