title: exit edit mode and update nav bar items
body: <p>With reference to this question: <a href="https://stackoverflow.com/questions/311800/exit-edit-mode">Exit Edit Mode</a></p>
  
  <p>about exiting edit mode when the last row is being deleted, my question is - how do you update the navigation bar "edit" item? After deleting the last row, I'd like to remove this nav bar item altogether AND exit edit mode (which is done per the question below) AND revert this button status back to "Edit" (rather than "Done" which is its status after deleting the last row). </p>
  
  <p>Thats what I am doing now:</p>
  
  <pre><code>- (void)tableView:(UITableView *)aTableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
  
  
  ...
  
  
      if ([section count] == 0) { //last row in the section
          [listOfItems removeObject:accessNumbers];    //updating my data source 
           tblSimpleTable.editing = NO; //added per the question above 
   //         self.navigationItem.rightBarButtonItem = nil; --&gt; thats what ideally i would want to do
   //       [self setEditing:YES animated:YES]; --&gt; adding this manually doen't help
      }
      else
      {
   ...
      }
  }     
  
  
  }
  </code></pre>
  
  <p>Thank you for the help! </p>
  
  <p>UPDATE: adding this line doesn't help. I stil need to click on the nav bar item "Done" to exit the editing mode. </p>
  
  <p>[self.tblSimpleTable setEditing:YES animated:YES];</p>
  
  <p>if I also hide the nav bar item, I essentially can't exit the edit mode at all, and the screen is frozen (I have some other buttons on the view that simply dont react to touch anymore in that case).</p>