随笔 - 400,  文章 - 0,  评论 - 7,  阅读 - 21万
上一页 1 2 3 4 5 6 ··· 40 下一页
摘要: 需求:分页请求列表数据,点击搜索,重置请求参数,从第一页开始请求20条数, 产生的bug 是 tableview在不滚动的时候,设置滚动到顶部正常,但是在tv 上下滚动的时候 ,接口数据返回,这时候操作 1.tv 清空数据,滚动到顶部 2.滚动到顶部,再清空数据,然后赋值接口数据,刷新列表,会出现t 阅读全文
posted @ 2025-01-17 22:37 懂事长qingzZ 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1.NSString 的 doubleValue 方法 let str = "123.45" let floatValue = CGFloat((str as NSString).doubleValue) print(floatValue) // 输出 123.45 2.使用 NumberForma 阅读全文
posted @ 2025-01-14 10:50 懂事长qingzZ 阅读(20) 评论(0) 推荐(0) 编辑
摘要: https://github.com/chenjie1219/StarRate 阅读全文
posted @ 2025-01-02 10:28 懂事长qingzZ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: //震动一次 /// 震动 OC代码 + (void)impactOccurred { UIImpactFeedbackGenerator *feedBackGenertor = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFee 阅读全文
posted @ 2024-12-24 15:30 懂事长qingzZ 阅读(20) 评论(0) 推荐(0) 编辑
摘要: https://github.com/Genymobile/scrcpy 阅读全文
posted @ 2024-11-19 09:38 懂事长qingzZ 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 根据授权状态更新变量 .authorized: 当用户授权通知时,设置 hasNotification = true 和 enableNotification = true。 .denied: 当用户拒绝通知时,设置 hasNotification = false。 .notDetermined: 阅读全文
posted @ 2024-11-18 16:12 懂事长qingzZ 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 当一个控件设置了顶部和底部约束的时候, 就已经确定了他的宽高,如果你在给他一个高度height, 会和顶部和底部约束起冲突,会出现UI高度被压缩或者UI正常但是约束冲突 此时更改下优先级,就不会报错,UI也显示正常了 .priority(.high) collectionView.snp.makeC 阅读全文
posted @ 2024-10-15 16:05 懂事长qingzZ 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 报错信息如下 Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutD 阅读全文
posted @ 2024-09-24 09:26 懂事长qingzZ 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 删除路径:~/Library/Developer/CoreSimulator/Cache 参考:https://www.jianshu.com/p/b484269374d1 阅读全文
posted @ 2024-07-24 08:58 懂事长qingzZ 阅读(39) 评论(0) 推荐(0) 编辑
摘要: OC 属性 @property (nonatomic, strong) NSDictionary * _Nullable extraData; swift使用 打印 Dictionary<AnyHashable, Any> (lldb) po extraData ▿ Optional<Diction 阅读全文
posted @ 2024-07-23 13:43 懂事长qingzZ 阅读(20) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 40 下一页

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示