I want to define a string variable which holds an IP Address globally,so that if in future the IPAddress got changed no need to go to each class file & update it, So for this what is the best way to implement whether to use plist or a global macro class or .pch file of my app?
Share
Create a .h file. Say, GlobalMacros.h
In GlobalMacros.h
In your .pch file
Now you can simply access the IP_ADDR anywhere.