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
-viewWillAppear method, to make the button hidden before displaying the actual view, but I still don't know how to do that.
I have a reference to the button through an IBOutlet, but I'm not sure how to move forward from here. For reference, this is a UIBarButtonItem instance.