I defined a series of string constants like below, in macro way,
#define EXT_RESULT_APPID @\"appid\" #define EXT_RESULT_ERROR_CODE @\"errorcode\" #define
You may create a header file name "Constants.h". Then you need to import this header file where you want to use these constants like:
#import "Constants.h"