摘要: 1 # 不可变对象 2 import copy 3 4 number1 = 1 5 stringA = 'A' 6 turple1 = (1, 2, 3, 4, 5) 7 8 # 可变对象 9 dict1 = {"key": 1} 10 list1 = [1, 2] 11 12 # 嵌套对象 13 阅读全文
posted @ 2022-01-08 21:34 怀达 阅读(41) 评论(0) 推荐(0) 编辑
摘要: @"[^"]*[\u4E00-\u9FA5]+[^"\n]*?" 需要将搜索方式修改为正则表达 阅读全文
posted @ 2021-01-07 20:58 怀达 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 1,获取要展示item的frame 2,调用展示方法 CGRect itemFrame = [collectionView layoutAttributesForItemAtIndexPath:indexPath].frame; [collectionView scrollRectToVisible 阅读全文
posted @ 2020-09-24 11:15 怀达 阅读(760) 评论(0) 推荐(0) 编辑
摘要: https://www.ietf.org/rfc/rfc3339.txt https://zhuanlan.zhihu.com/p/31829454 -(NSString *)rfc3339DateFormatterStringToUTC8EndMicrosecond;{ // 2020-05-22 阅读全文
posted @ 2020-06-15 15:58 怀达 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 升级AFN之后,SDK工程始终编译不通过找不到SDK.a 原因在SDK Target ->Build phases ->Link Binary With Libraries 多添加了SDK工程依赖的pod 库,删除所有的库之后编译就通过了 参考: https://www.jianshu.com/p/ 阅读全文
posted @ 2020-05-12 16:00 怀达 阅读(3375) 评论(0) 推荐(0) 编辑
摘要: 1,AFN升级4.0 2,代码中搜索UIWebView移除相关文件 3,检查库是否使用的UIWebView 参考 https://www.jianshu.com/p/3a645500d461 阅读全文
posted @ 2020-05-12 11:03 怀达 阅读(764) 评论(0) 推荐(0) 编辑
摘要: // for (NSString *fontFamilyName in [UIFont familyNames]) { // NSLog(@"family: '%@'", fontFamilyName); // for (NSString *fontName in [UIFont fontNames 阅读全文
posted @ 2020-05-07 21:14 怀达 阅读(243) 评论(0) 推荐(0) 编辑
摘要: OC中定义的方法参数默认是不为空的,如果能够为空需要手动指定__nullable ,我想这个警告是提示开发者警惕可能空参数 阅读全文
posted @ 2020-04-29 11:57 怀达 阅读(1396) 评论(0) 推荐(0) 编辑
摘要: 参考: 1,https://developer.apple.com/documentation/foundation/nsbundle/1417694-localizedstringforkey 2,MJRefresh 原理:1,找到本地化字符串表(string table)对应的 bundle,例 阅读全文
posted @ 2020-04-29 11:44 怀达 阅读(970) 评论(0) 推荐(0) 编辑
摘要: AFN更新到4.0.1后,崩溃[AFHTTPSessionManager GET:parameters:progress:success:failure:]: unrecognized selector sent 。。。 按照网络手上说的删除driveData文件夹,没有作用,于是指定老版本3.2. 阅读全文
posted @ 2020-04-28 17:03 怀达 阅读(1020) 评论(0) 推荐(0) 编辑