I would like to create a toggle button in my iPhone application. However, I don\'t know exactly what would be the best approach for this.
I am considering two options.>
Just make an (IBAction) method and also a BOOL. Set the BOOL default to FALSE. Your IBAction must look like this:
- (IBAction) .... { if (bool) { // do your things } else { // do your things } bool =! bool }
That works for me!