#define Appstoreid @ "987353224"
app Install URL
#define APPSTOREINSTALLURLFORMAT @ "https://itunes.apple.com/cn/app/id987353224?mt=8"
Apply Update URL
#define APPSTOREUPDATEURLFORMAT @ "itms-apps://itunes.apple.com/app/id987353224"
app rating URL
#define APPSTORERATEURLFORMAT @ "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id= 987353224&pagenumber=0&sortordering=1&type=purple+software&mt=8 "
#define IS_IPHONE5 ([[[UIApplication Sharedapplication] delegate] window].frame.size.height > 500.0f)
#define UICOLORFROMHEX (hex) [Uicolor colorwithred: ((float) ((Hex & 0xFF0000) >>)/255.0 Green: ((float) (( Hex & 0xff00) >> 8)/255.0 Blue: ((float) (Hex & 0xFF)/255.0 alpha:1.0]
#define UICOLORFROMHEXANDALPHA (Hex, _a) [Uicolor colorwithred: ((float) ((Hex & 0xFF0000) >>))/255.0 Green: ( (float) ((Hex & 0xff00) >> 8)) /255.0 Blue: ((float) (Hex & 0xFF))/255.0 Alpha:_a]
#define USERDEFAULTS [Nsuserdefaults Standarduserdefaults]
#define KDEVICEUUID [[Uidevice Currentdevice] Identifierforvendor]
#define Kscreenbounds [[UIScreen mainscreen] bounds]
#define KSCREENWIDTH [[UIScreen Mainscreen] Bounds].size.width
#define Kscreenheight [[UIScreen Mainscreen] Bounds].size.height
E -mail \b ([a-za-z0-9%_.+\-]+) @ ([a-za-z0-9.\-]+?\.[ a-za-z]{2,6}) \b
#define Kemailregex @ "[A-z0-9a-z._%+-][email protected][a-za-z0-9.-]+\\. [A-za-z] {2,4} "
#define Kusernameregex @ "^[a-za-z0-9_]{3,18} (@ ([a-za-z0-9_-]) + (\\.[ a-za-z0-9_-]+)) {0,1}$ ")
#define Kpasswordregex @ ". {6,10} "
#define Kphonenumberregex @ "^ (0|\\+86|86) {0,1} (13[0-9]|15[0-9]|18[6-9]) [0-9]{8}$]
#define KPICTURE_COMPRESS_RATIO 0.5//Picture compression ratio
#define APP_HAD_INSTALLED @ "com.mili.AppHadInstalled"//whether the application has been installed
Block self
#define WEAK_SELF __weak __typeof (self) weakself = self;
#define STRONG_SELF __strong __typeof (weakself) strongself = weakself;
#ifdef DEBUG
A better version of NSLog
#define NSLOG (format, ...) do {\
fprintf (stderr, "<%s:%d>%s\n", \
[[[NSString stringwithutf8string:__file__] lastpathcomponent] utf8string], \
__line__, __func__); \
(NSLOG) (format), # #__VA_ARGS__); \
fprintf (stderr, "-------\ n"); \
} while (0)
#else
#define NSLOG (...) {}
#endif
#endif
appstoreid--Install url--app update url--app rating URL