Hi guys
I am wanting to create an application in Xcode that has a UI switch, that will comment out a line of code in my view controller.m file. I am assuming this is the best way to do it.
Basically I need that when the UIswitch is set to off, I would like it to run this line of code, but when the user flicks the switch to the on position, I would that line of code not to be run.
Any ideas will be much appreciated.
I am wanting to create an application in Xcode that has a UI switch, that will comment out a line of code in my view controller.m file. I am assuming this is the best way to do it.
Basically I need that when the UIswitch is set to off, I would like it to run this line of code, but when the user flicks the switch to the on position, I would that line of code not to be run.
Any ideas will be much appreciated.