where is the right place to define contants in an Xcode project? Such as an URL, that wont change or some images for a different backgroundstyle. AppDelegate.h? If so, where exactly? I'd like to create clean code.
Thanks
where is the right place to define contants in an Xcode project? Such as an URL, that wont change or some images for a different backgroundstyle. AppDelegate.h? If so, where exactly? I'd like to create clean code.
Thanks
What about you create a header file, probably constants.h
and define your constants in it, for example
#define URL_WEBSERVICE @"http://..."
#define COLOR_TEXT [UIColor colorWithRed:.75 green:1.0 blue:.4 alpha:1.0]
#define MAX_RESULTS 100
You can also import this header file into your precompiled header file .pch
so that the values in it become visible to all your files.