iOS extern 和 #define 使用
Easiest way:
// Prefs.h#define PREFS_MY_CONSTANT @"prefs_my_constant"
Better way:
// Prefs.hexternNSString*const PREFS_MY_CONSTANT;// Prefs.mNSString*const PREFS_MY_CONSTANT =@"prefs_my_constant";
http://stackoverflow.com/questions/538996/constants-in-objective-c
浙公网安备 33010602011771号