I started developing apps using Swift directly so i have little to know idea about Objective C, however i had to take up a project which was implemented in Objective C and fix few bugs.
I came across a code in Swift which i want to convert to 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)
}
Now i have done some research and got this
UIDocumentMenuViewController *importMenu = *Code Here* ;
importMenu.delegate = self;
importMenu.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:importMenu animated:YES];
Can anyone help me how to can i get the first line converted to Objective C in the code ?