I\'m developing an app just now that fetches resources from a JSON API.
all of the resources have the same base URL:
http://api.mysite.com/resources.
I just create a file called Globals.h with something like the following:
Globals.h
#define kBaseURL @"http://api.mysite.com/"
Then to use:
#import "Globals.h" // at the top NSString *url = [NSString stringWithFormat:@"%@resources.json",kBaseURL];