I am using UITextView
to edit text. I want to use two UIButtons
Edit and Save. Initially I want to show edit UIButton
, when the user click
Instead of visible, the property you are looking for is hidden.
saveButton.hidden = YES;
That should do the trick.
Simply Add IBoutlet property in .h file. like
@property (strong, nonatomic) IBOutlet UIButton *resendOtpButtom;
then add
_resendOtpButtom.hidden = YES; in .m file.
Consider enabling or disabling the buttons instead. You get the same end result, but it's a little bit more consistent since things aren't appearing and dissapearing out of nowhere.
Since UIButton
inherits from UIView
, you can just set the hidden
property on the button (via UIButton doc)
button.hidden = YES;