摘要: 这篇文档上说的比较详细:https://www.jianshu.com/p/dd6775219869 1.NSTimer的循环引用 [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateTim 阅读全文
posted @ 2020-12-13 10:21 狼狼a够 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 方法1: //判断是否为iPhone X #define IPHONE_X \ ({BOOL isPhoneX = NO;\ if (@available(iOS 11.0, *)) {\ isPhoneX = [[UIApplication sharedApplication] delegate] 阅读全文
posted @ 2020-12-13 09:08 狼狼a够 阅读(2646) 评论(0) 推荐(0) 编辑