【发布时间】:2014-11-04 02:15:43
【问题描述】:
Objective-C 方法
typedef void(^CompletionHandler)(NSError *error);
- (void)openWithCompletionHandler:(CompletionHandler)completionHandler authType:(AuthType)authType, ...;
我已尝试将对象 c 代码转换为 swift 代码。
我试过了:
test().openWithCompletionHandler({ (NSError) -> Void in
}, AuthType.Test)
但这是代码“调用中的额外参数”编译错误。
我该怎么办?
【问题讨论】:
标签: swift objective-c-swift-bridge