私はSwiftを直接使ってアプリケーションを開発し始めたので、Objective Cのアイデアはほとんど分かっていませんでしたが、Objective Cで実装されたプロジェクトを取り上げていくつかのバグを修正しなければなりませんでした。 SwiftからObjective Cへのコードの変換?
は、私は私がfunc mySpecialFunction(){
let importMenu = UIDocumentMenuViewController(documentTypes: [String(kUTTypePDF)], in: .import)
importMenu.delegate = self
importMenu.modalPresentationStyle = .formSheet
self.present(importMenu, animated: true, completion: nil)
}
は、今私はいくつかの研究を行っているのObjective Cに変換したいスウィフトのコードに出くわしたとなった。この
UIDocumentMenuViewController *importMenu = *Code Here* ;
importMenu.delegate = self;
importMenu.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:importMenu animated:YES];
誰がどのように私をすることができます助けて私はでき
コード内のObjective Cに変換された最初の行を取得しますか?
可能な重複https://stackoverflow.com/questions/33099775/how-to-initialise-uidocumentpickerviewcontroller-with-all-type -of-utis) –