Created
May 29, 2020 16:19
-
-
Save Yorzic/d6a9f16d72d0163ab5ab8f79ebdd39f6 to your computer and use it in GitHub Desktop.
Call handleCSVFile method from documentPicker didPickDocumentsAt method in iOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) { | |
guard let myURL = urls.first else { | |
return | |
} | |
print("import result : \(myURL)") | |
if let data = handleCSVFile(url: myURL) { | |
cells = data | |
tableView.reloadData() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment