I\'ve created a new navigation based iPhone app. I added this to the RootViewController.
- (void)viewDidLoad {
[super viewDidLoad];
UIBarButtonItem *add
You don't define what the button actually does. This is a line from my app:
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancelEdit:)];
cancelEdit:
, the selector, is in the current class (self) and is defined as:
- (void) cancelEdit: (id) sender;