selector用法
field.addTarget(self, action: #selector(self.changeValue(_ :)), for: .editingChanged)
func changeValue(_ field:UITextField? = nil) {
///
}
+ (_Nonnull instancetype)manager;
Swift类里调用上面的单例方法没法访问。
解决办法用属性
推荐写法
+ (instancetype _Nonnull)shared;
这样调用
CKKNetManager.shared().get(kGetCompanyInfo, success: {[unowned self] (obj) in
self.hideEmptyView()
self.info = CKKCorpInfo.init(dictionary: obj as! [String : AnyObject])
}) {[unowned self] (errorString) in
self.showEmptyView(in: self.view, with: EmptyViewType.pageLoadFailed)
}