摘要: if 左边 ~= 右边逻辑 { } 表示右边逻辑在左边的逻辑范围内 let task = URLSession.shared.dataTask(with: URL(string: "https://google.com")!) { (data,response, error) in guardlet 阅读全文
posted @ 2025-03-21 16:12 懂事长qingzZ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: OC 使用swift 1.swift方法需要关键字 @objcMembers swift @objcMembers class MyClass: NSObject { public var myProperty: String = "Hello" public func myMethod() { p 阅读全文
posted @ 2025-03-18 17:23 懂事长qingzZ 阅读(1) 评论(0) 推荐(0) 编辑
摘要: import CoreMotion ///获取设备旋转角度 class YDMotionManager { private let motionManager = CMMotionManager() // 添加一个回调来传递计算出的角度 func getAngle(completion: ((_ a 阅读全文
posted @ 2025-03-13 13:57 懂事长qingzZ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: CustomStringConvertible Equatable 阅读全文
posted @ 2025-02-20 11:03 懂事长qingzZ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 自定义MAAnnotationView iOS 高德SDK Swift自定义地图点标记样式 https://izumi.pub/iOS/iOS-amap-sdk/ 2.点击无反应 override init?(annotation: MAAnnotation?, reuseIdentifier: S 阅读全文
posted @ 2025-02-05 16:34 懂事长qingzZ 阅读(17) 评论(0) 推荐(0) 编辑
摘要: // 左上角坐标 let topLeftCoord = mapView.convert(.zero, toCoordinateFrom: mapView) // 右下角坐标 let bottomRightCoord = mapView.convert(CGPoint(x: mapView.width 阅读全文
posted @ 2025-02-04 08:55 懂事长qingzZ 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Jenkins自动化打包iOS https://www.jianshu.com/p/e2e44f84c721 iOS使用jenkins自动构建、部署 https://www.cnblogs.com/liuluoxing/p/12096501.html 阅读全文
posted @ 2025-01-18 18:42 懂事长qingzZ 阅读(4) 评论(0) 推荐(0) 编辑
摘要: probuffer java解析库 protobuf 解析 https://blog.51cto.com/u_16213652/9241312 阅读全文
posted @ 2025-01-18 18:34 懂事长qingzZ 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 循环创建btn,如果btn设置特别场的标题,会造成左右编剧不生效,这时候加个判断判断 if value.count >= 15 { ///字太多左右边距会没了,修复字太多左右贴边显示 value = " \(value) " } https://github.com/bolagong/RecordL 阅读全文
posted @ 2025-01-18 18:24 懂事长qingzZ 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 评价星星StarRate https://github.com/chenjie1219/StarRate 阅读全文
posted @ 2025-01-18 18:13 懂事长qingzZ 阅读(4) 评论(0) 推荐(0) 编辑