29-UITableView#5.Insert data and row to an existing UITableView

29-UITableView#5.Insert data and row to an existing UITableView

Nguyen Duc Hoang

6 лет назад

1,025 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Jøhππყ Ɠ ツ
Jøhππყ Ɠ ツ - 25.02.2019 06:45

Use of unresolved identifier 'UIPickerViewControllerEditedImage'
let choosenImage: UIImage = info[UIPickerViewControllerEditedImage] as! UIImage


How to fix this? I'm on Xcode 10


Solution I figured it out
Xcode 10 Swift 4
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any])

{

let chosenImage = info[UIImagePickerController.InfoKey.editedImage] as! UIImage
imageViewFood!.image = chosenImage
newFood.image = chosenImage
picker.dismiss(animated: true, completion: nil)

}

Ответить