How can I dynamically hide a button from a view?

Posted by jpm on Stack Overflow See other posts from Stack Overflow or by jpm
Published on 2008-11-10T01:45:16Z Indexed on 2010/04/14 20:03 UTC
Read the original article Hit count: 226

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk