Is there a way to choose file from iCloud Drive similar way to UIImagePickerController()
?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- SwiftUI: UIImage (QRCode) does not load after call
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Using if let syntax in switch statement
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Enum with associated value conforming to CaseItera
- Swift - hide pickerView after value selected
- Is there a Github markdown language identifier for
You need to enable
iCloud
entitlements. Once you do this, you are able to present controller the following way:In your delegate implement the method:
This code work for me:
Swift 4.X
You need to enable
iCloud
entitlements in XCode Capabilities. Also you have to turn oniCloud
in you app bundle in developer account of Apple. Once you do this, you are able to present document picker controller by following way:Use
UIDocumentPickerDelegate
methodsAdd below code for Button Action
This is working fine for me. Hope it helps you too.
Happy coding :)