I’m a newbie to iPhone application development. I want to know whether it is possible to create button with title ABC and when a user clicks on that, the title goes something like XYZ and when the user clicks the button (with title changed to XYZ now) it again changes to the previos one i.e ABC.
I’m using xcode 4.3 with storyboards, any help would be highly appreciated.
An UPDATE: I’ve impleented the first half of it. That is, when I click ABC, it chnges to XYZ but dont know exactly how to set that XYZ back to ABC on tapping 🙁
Declare a
BOOLproperty, say,buttonIsOn.