上一页 1 2 3 4 5 6 7 ··· 41 下一页
摘要: 循环创建btn,如果btn设置特别场的标题,会造成左右编剧不生效,这时候加个判断判断 if value.count >= 15 { ///字太多左右边距会没了,修复字太多左右贴边显示 value = " \(value) " } https://github.com/bolagong/RecordL 阅读全文
posted @ 2025-01-18 18:24 懂事长qingzZ 阅读(11) 评论(0) 推荐(0)
摘要: 评价星星StarRate https://github.com/chenjie1219/StarRate 阅读全文
posted @ 2025-01-18 18:13 懂事长qingzZ 阅读(7) 评论(0) 推荐(0)
摘要: 推荐:LINPullTableView 拖拽view https://github.com/tangtiancheng/DouYinComment https://github.com/earnestLin/LINPullTableView https://www.jianshu.com/p/5c0 阅读全文
posted @ 2025-01-18 18:11 懂事长qingzZ 阅读(16) 评论(0) 推荐(0)
摘要: 解析泛型适用于分页解码 <T: Codable> <T: HanyJSON> <T: SwiftyJSON> 等各种框架 struct PageMyBatis<T: Codable>: Codable { let totalPage: Int let pageCurrent: Int let dat 阅读全文
posted @ 2025-01-18 18:08 懂事长qingzZ 阅读(7) 评论(0) 推荐(0)
摘要: 需求:分页请求列表数据,点击搜索,重置请求参数,从第一页开始请求20条数, 产生的bug 是 tableview在不滚动的时候,设置滚动到顶部正常,但是在tv 上下滚动的时候 ,接口数据返回,这时候操作 1.tv 清空数据,滚动到顶部 2.滚动到顶部,再清空数据,然后赋值接口数据,刷新列表,会出现t 阅读全文
posted @ 2025-01-17 22:37 懂事长qingzZ 阅读(33) 评论(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 阅读(158) 评论(0) 推荐(0)
摘要: https://github.com/chenjie1219/StarRate 阅读全文
posted @ 2025-01-02 10:28 懂事长qingzZ 阅读(20) 评论(0) 推荐(0)
摘要: //震动一次 /// 震动 OC代码 + (void)impactOccurred { UIImpactFeedbackGenerator *feedBackGenertor = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFee 阅读全文
posted @ 2024-12-24 15:30 懂事长qingzZ 阅读(132) 评论(0) 推荐(0)
摘要: https://github.com/Genymobile/scrcpy 阅读全文
posted @ 2024-11-19 09:38 懂事长qingzZ 阅读(19) 评论(0) 推荐(0)
摘要: 根据授权状态更新变量 .authorized: 当用户授权通知时,设置 hasNotification = true 和 enableNotification = true。 .denied: 当用户拒绝通知时,设置 hasNotification = false。 .notDetermined: 阅读全文
posted @ 2024-11-18 16:12 懂事长qingzZ 阅读(45) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 41 下一页