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
This is what I did for button items that weren't part of the navigation bar (where Blank.png is a blank image I created that's the same size of the image it replaces):
theButton.enabled = NO; theButton.image = [UIImage imageNamed: @"Blank.png"];