摘要: 1.添加监听 lab1.addObserver(self, forKeyPath: "text", options: [.new, .old], context: nil) 2. 监听 override func observeValue(forKeyPath keyPath: String?, o 阅读全文
posted @ 2020-09-28 17:55 懂事长qingzZ 阅读(278) 评论(0) 推荐(0)
摘要: instanceType 换成id 使用的时候 转换一下类型 1. #import <UIKit/UIKit.h> 2.instanceType 改为id 3. 使用 类型转换 if let info = TBCityIconInfo.iconInfo(withText: "str", size: 阅读全文
posted @ 2020-09-28 16:18 懂事长qingzZ 阅读(361) 评论(0) 推荐(0)