摘要:鸣谢:https://www.cnblogs.com/wuotto/p/9354305.html 概述 项目开发中经常会用到方法的延时调用,下面列举常用的几种实现方式: 1.performSelector 2.NSTimer 3.NSThread线程的sleep 4.GCD 1.performSel
阅读全文
摘要:// 1. iOS 获取到的 APP 的信息// iOS获取当前app的名称和版本号 NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];//获取app版本信息 NSLog(@"%@",infoDictionar
阅读全文
摘要:截取: NSString *str1 = @"this is zero"; 1.从第三个字符开始,截取长度为2的字符串.........注:空格算作一个字符 NSString *str2 = [str1 substringWithRange:NSMakeRange(5,2)];//str2 = "i
阅读全文
摘要:名称 屏幕分辨率 代码获取屏幕大小iphone X 2436 x 1125 {375 ,812} iphone XR 1792 x 828 {414 ,896} iphone XS 2436 x 1125 {375 ,812} iphone XS Max 2688 x 1242 {414 ,896}
阅读全文
摘要:鸣谢:https://www.cnblogs.com/lulushen/p/9884873.html
阅读全文