I have created a UIButton on our iPhone app, now I want to manually change the button state.
I read the UIButton documentation but I can't seem to find anything about manually setting a UIButton state.
Any help would be appreciated.
How to set UIButton state in iOS
1510
19-Dec-2015
Updated on 07-Jan-2016
Tarun Kumar
07-Jan-2016use code like this:
Now, we can do operation on UIButton as requirement, like executing some action when button is selected and while not selected.