0

Using UIImagePickerController have to pick image from library or camera. Library image picking worked without issues but camera image picking have issues. when i select camera option camera opened and took picture. after took picture log displayed as "Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.". when i click use photo button app crashed.

UIImagePickerController presentation is

let ImagePicker = UIImagePickerController()
ImagePicker.delegate = self
self.presentViewController(ImagePicker, animated: true, completion: nil)
ilovecomputer
  • 4,238
  • 1
  • 20
  • 33
Elavarasan
  • 77
  • 1
  • 1
  • 6

1 Answers1

0

It looks like bug because many developer get same error and have solution below that works for many developer.Hope any one of solution from following link will help to you..

iOS 8 Snapshotting a view that has not been rendered results in an empty snapshot

Community
  • 1
  • 1
Bhoomi Jagani
  • 2,413
  • 18
  • 24