0
私は、目的のCコードを迅速に翻訳しようとしていますが、私はこれまで行っていましたが、何らかのエラーが発生しました。swatchでdispatch_asyncを翻訳する
私はこの方法でやったが、私はエラーを取得迅速バージョンでdispatch_async(dispatch_get_main_queue(), ^{
[self.window.rootViewController presentViewController:self.incomingCall animated:YES completion:nil];
:
dispatch_async(dispatch_get_main_queue(), {() -> Void in
// Show the alert
self.window?.rootViewController?.present(self.iincomingCall(), animated: true, completion: nil)
})
エラーは何ですか? Swiftのどのバージョン? 2または3? – rmaddy
Swift 3を使用している場合は、http://stackoverflow.com/questions/37801370/how-do-i-dispatch-sync-dispatch-async-dispatch-after-etc-in-swift-3?rq=1を参照してください。 – rmaddy