I am new to iPhone development. I want to access a string variable in all the class methods, and I want to access that string globally. How can I do this?
Please hel
The preferred methods for creating a global variable are:
The big advantage of method (2) is that it is encapsulated and portable. Need to use classes that use the global in another project? Just move the class with the variables along with them.