I'm just going to new, fast,
I have one button that, when clicked, opens the front camera of the iPad, and by clicking on the user's photo, and when I click on use the photo
func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject])
receives a call to imagePickerController
this is a line of code.
func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]) { picker .dismissViewControllerAnimated(true, completion: nil) photoImgView.image=info[UIImagePickerControllerOriginalImage] as? UIImage if imageData == nil { imageData = UIImageJPEGRepresentation((info[UIImagePickerControllerOriginalImage] as? UIImage)!, 1) } }
but when I send it, it found the nil value found, after debugging I got this point in func didFinishPickingMediaWithInfo which says
(lldb) po imageData expression produced error: Execution was interrupted, reason: step over. The process has been returned to the state before expression evaluation.
I do not understand what I am doing wrong. because I'm not very good at fast, can anyone guide me for the same. I am stuck at this point.
Thanks in advance.
Sagar source share