In iPhone , I just want to store all URL at global level so that I should be able to access those by some id or something . I found out one way like implementing a category for NSObject so that we can access those members everywhere as all the classes are subclassed from NSObject . But I don’t like this way .
Is there a simple and smarter way to do this. This is gonna save a lot of time each time I want to change the value of any of the URL .
Thank you all in advance !!
You can include all your url into a separate header file (*.h) that you can import into all classes which needs them.
There you can write a static constant or a preprocessor #define statement
or
#define kSampleURL @"http://stackoverflow.com"