阅读63 返回首页    go 微软 go Office


有用的宏定义

// 是否高清屏
#define isRetina ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)
// 是否iPad
#define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
// 是否模拟器
#define isSimulator (NSNotFound != [[[UIDevice currentDevice] model] rangeOfString:@"Simulator"].location)


最后更新:2017-04-02 22:16:33

  上一篇:go [笔记]Python的整数对象:PyIntObject
  下一篇:go How to build Windows Android2.3 SDK怎么编译windows下的android2.3 SDK