appstoreid--Install url--app update url--app rating URL

Source: Internet
Author: User

#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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.