I have added a BarButton
item to the left of the nav.bar
through Interface Builder and in the code I want this only to show in my table view's edit mode. But I didn't find any hidden property to set the leftBarButtonItem
(like: self.navigationItem.leftBarButtonItem.hidden = YES
).
I can only set enabled
property. Anybody know how to control the hide and show property of the leftBarButtonItem
, please help.
This works I tried it myself
self.navigationItem.leftBarButtonItem = nil;
self.navigationItem.hidesBackButton = YES;