Title essentially says it all.
I have a UITableView
and I want the RightBarButtonItem
item to disappear while the UITableView
is in edit mode. Unfortunately, all of the answers that I have found so far suggest setting the button to nil... which won't work for me because I do not want to get rid of the button and the reference to it, just hide it while the UITableView
is in edit mode.
What I'm having trouble figuring out what to do, then, is:
- Detect when the
UITableView
has entered editing mode - Hiding the
RightBarButtonItem
(not removing it entirely) - Detect when the
UITableView
has left editing mode (so the button can reappear)
Any help would be appreciated, thank you!