摘要:
这篇文档上说的比较详细:https://www.jianshu.com/p/dd6775219869 1.NSTimer的循环引用 [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateTim 阅读全文
摘要:
方法1: //判断是否为iPhone X #define IPHONE_X \ ({BOOL isPhoneX = NO;\ if (@available(iOS 11.0, *)) {\ isPhoneX = [[UIApplication sharedApplication] delegate] 阅读全文