I am adding a Edit button to the top right corner of tool bar by doing this
Also, the documentation indicated that
However, when i run the program and try to click on EDIT button. It is changed to DONE but the each row of my table does not have any red circle with (-) before...
Please guide me on this issue. Thanks
Code:
- (void)viewDidLoad
{
NSLog(@"VIEW DID LOAD");
[super viewDidLoad];
// Initialize var
self.navigationController.navigationBarHidden = NO;
self.navigationItem.hidesBackButton = NO;
self.navigationItem.rightBarButtonItem = [self editButtonItem];
}
Code:
Name:editButtonItem - (UIBarButtonItem *)editButtonItem
Availability: iOS (2.0 and later)
Abstract: Returns a bar button item that toggles its title and associated state between Edit and Done.
Please guide me on this issue. Thanks