0
  • I want to select specific document in iCloud document picker.
  • But When i write more than 7 format types it'd given me error.
  • Error : expression was too complex to be solved in reasonable time consider breaking up the expression

    ERROR IMAGE

I have done code like this :

let type = [String(kUTTypePDF), String(kUTTypeImage), String(kUTTypeMovie), String(kUTTypeVideo), String(kUTTypePlainText), String(kUTTypeMP3), String(kUTTypeAudio)]
let fileDocumentPicker = UIDocumentPickerViewController(documentTypes: type, inMode: .Import)
fileDocumentPicker.delegate = self
self.presentViewController(fileDocumentPicker, animated: true, completion: nil)
rmaddy
  • 314,917
  • 42
  • 532
  • 579

0 Answers0