帶有閉包的swift自定義initilizer在目標c代碼中不可見。帶閉包的Swift init在Objective C中不可見Objective-C
init(url:String,request:ABaseRequest,
type:AnyClass, success:(ABaseResponse)->Void,
failure:(ResponseCode,NSError)->Void) {
......
......
}
,其中因爲沒有閉合的init可見
init(url:String,request:ABaseRequest,type:AnyClass) {
......
......
}
你們是否知道如何解決這個問題呢?