I am facing a problem, i have a tab application in which i made the second controller as a navigation controller and just drag and dropped a table view over this.
My table is working fine with all the elements coming in from the database.
My problem is that i want a edit button when clicked,the table goes into the editing mode and would allow me to delete rows from the table. I am not able to understand how can i do that i tried this
- (void)viewDidLoad
{
self.navigationItem.rightBarButtonItem = self.editButtonItem;
[super viewDidLoad];
It brings a edit button on the right side of the navigation controller but when i click it doesn’t changes the table in editing mode.
I know i have to implement this method but i am not getting what to write in this
- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
}
Everywhere on other forums i find written tableview —– , what is this table view is it a instance for the UITableView class ?
Help me out in the code stuff
Please
You have to asign the following button in the – (void)viewDidLoad
and then implement the following methods: