
UINavigationBar Edit Button
Given is the code that adds a edit button item as a nav bar item in your UINavigation Controller.
-(void)viewDidLoad;
{
[super viewDidLoad];
UINavigationBar* navBar = self.myOwnStupidNavigationBar;
UINavigationItem* navItem = self.navigationItem;
navItem.leftBarButtonItem = [self editButtonItem];
navbar.items = [NSArray arrayWithObject:navItem];
}
or
-(void)viewDidLoad;
{
[super viewDidLoad];
self.navigationItem.leftBarButtonItem = [self editButtonItem];
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.