I would like to dynamically hide a button in one of my views depending on a certain condition.
I tried adding some code to the view controller\'s -viewWillAppe
-viewWillAppe
Set the bar item to nil.
For example:
self.navigationItem.leftBarButtonItem = nil;