I have an IBAction
with a UIButton
that enables the edit mode. I'd like to hit the same UIButton
and cancel the edit mode. If I use an if-else
statement, what do I check for : if(editeModeEnabled)//turn it off, else turn it on
... so I can use the same UIButton
for both on and off.
Thanks much.