Hi,
I try to updating my project from Swift to Swift 2 but I get an error with the following code:
let PhotoController = UIImagePickerController()
PhotoController.delegate = self
PhotoController.sourceType = UIImagePickerControllerSourceType.Camera
let mediaTypes:[AnyObject] = [kUTTypeImage]
PhotoController.mediaTypes = mediaTypes
PhotoController.allowsEditing = false
self.presentViewController(PhotoController, animated: true, completion: nil)On the following line:
PhotoController.mediaTypes = mediaTypesthe compiler indicate this error:
cannot assign a value of type '[AnyObject]' to a value of type '[String]'
Can you help me please ? Thanks a lot !