上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: 自定义返回按钮,设置 setLeftBarButtonItem 后,系统的滑动手势返回会失效。 BaseNavigationController里,加下面的逻辑。 - (void)viewDidLoad { [super viewDidLoad]; self.interactivePopGestur 阅读全文
posted @ 2025-03-19 09:52 黄增松 阅读(47) 评论(0) 推荐(0)
摘要: requireGestureRecognizerToFail 这个方法,是_scrollView等左滑手势失效后,再执行_scrollView内部的手势解决方案一(推荐) [_scrollView.panGestureRecognizer requireGestureRecognizerToFail 阅读全文
posted @ 2025-03-19 09:48 黄增松 阅读(54) 评论(0) 推荐(0)
摘要: 关键就在与onceToken的值,添加一个方法,将onceToken置为0 https://www.jianshu.com/p/16a5ee0f5efe 阅读全文
posted @ 2025-03-13 16:46 黄增松 阅读(25) 评论(0) 推荐(0)
摘要: 微信分享通用链接配置 https://www.jianshu.com/p/040213c02f68 示例 https://www.xxx.com/apple-app-site-association { "applinks": { "apps": [], "details": [ { "appID" 阅读全文
posted @ 2025-03-11 12:17 黄增松 阅读(17) 评论(0) 推荐(0)
摘要: 正确的解决方式 https://blog.csdn.net/zyx980193917/article/details/103263217/ push pop 有导航跳无导航,跳有导航;无导航跳有导航,跳无导航;都平滑过渡 基类 var isShowNav = true 基类 override fun 阅读全文
posted @ 2025-03-06 17:37 黄增松 阅读(60) 评论(0) 推荐(0)
摘要: UILabel提供了一个非常方便的属性adjustsFontSizeToFitWidth,当设置为true时,UILabel会自动调整其字体大小以适应其宽度。 UILabel *alabel = [[UILabel alloc] init]; alabel.frame = CGRectMake(0, 阅读全文
posted @ 2025-02-27 14:20 黄增松 阅读(52) 评论(0) 推荐(0)
摘要: 最佳处理方式 https://www.cnblogs.com/huangzs/p/18755980 可以不看下面的了 https://blog.csdn.net/yz_lby/article/details/49082131 -(void)viewWillAppear:(BOOL)animated{ 阅读全文
posted @ 2025-02-19 11:00 黄增松 阅读(24) 评论(0) 推荐(0)
摘要: func hasCycle(_ head: ListNode?) -> Bool { var slow = head, fast = head while fast != nil && fast?.next != nil { slow = slow?.next fast = fast?.next?. 阅读全文
posted @ 2025-02-08 15:26 黄增松 阅读(12) 评论(0) 推荐(0)
摘要: func quickSort<T: Comparable>(_ array: [T]) -> [T] { guard array.count > 1 else { return array } let pivot = array[array.count / 2] let less = array.f 阅读全文
posted @ 2025-02-08 15:23 黄增松 阅读(15) 评论(0) 推荐(0)
摘要: 值类型:赋值时复制值,如 struct、enum、基本类型(Int、String 等)。 引用类型:赋值时共享引用,如 class、closure。 阅读全文
posted @ 2025-02-08 09:12 黄增松 阅读(29) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页