zoukankan      html  css  js  c++  java
  • AppStoreID--安装URL--应用更新URL--应用评分URL

    #define AppStoreID @"987353224"

    //应用安装URL

    #define AppStoreInstallURLFormat @"https://itunes.apple.com/cn/app/id987353224?mt=8"

    //应用更新URL

    #define AppStoreUpdateURLFormat @"itms-apps://itunes.apple.com/app/id987353224"

    //应用评分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) >> 16))/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) >> 16))/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 ([a-zA-Z0-9%_.+-]+)@([a-zA-Z0-9.-]+?.[a-zA-Z]{2,6})

    #define kEmailRegex @"[A-Z0-9a-z._%+-]+@[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 //图片压缩比率

    #define APP_HAD_INSTALLED @"com.mili.AppHadInstalled"//本应用是否安装过

    // 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 ",                                          

    [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], 

    __LINE__, __func__);                                                       

    (NSLog)((format), ##__VA_ARGS__);                                          

    fprintf(stderr, "------- ");                                              

    } while (0)

    #else

    #define NSLog(...) {}

    #endif

    #endif

  • 相关阅读:
    用msi安装MySQL时MySQL Server组件不能安装,或安装失败
    在Django中连接MySQL数据库(Python3)
    2,简单的Python爬虫
    把自己的电脑做成服务器,并搭建自己的网站
    任务计划程序(让计算机自动执行程序)
    1,Python爬虫环境的安装
    response和request的区别以及常见问题解决
    Microsoft Visual Studio 2010 Service Pack 1 更新 (KB3002340)
    设置radiobutton 都不选中
    QQ邮件发送问题
  • 原文地址:https://www.cnblogs.com/niexiaobo/p/4642569.html
Copyright © 2011-2022 走看看