So, I know this has been given several times, but I have yet to find a solution that works for me.
The odd thing is that the first time I present a camera from the UIPickerController, it works just fine, exactly as intended. But then, if I open it again, it will only display a black screen with camera controls (the Cancel button and the White Snapshot button).
Any help overwhelming this error would be greatly appreciated, or even just a confirmation that it is a mistake, and I just need to wait until Apple decides that it will be a big help!
Thanks everyone :)
(PS I am working on iPhone 6 Plus using iOS 8.1)
EDIT: Code (I use Xamarin and C #)
public void ShowPhotoTaker (UIViewController vc) { UIImagePickerController picker = new UIImagePickerController (); picker.SourceType = UIImagePickerControllerSourceType.Camera; picker.FinishedPickingMedia += (object sender, picker.DismissViewController(true, null); }; picker.Canceled += (object sender, EventArgs e) => { picker.DismissViewController(true, null); }; vc.PresentViewController (picker, true, null); }
And this is the exact error I get when calling this method
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.
source share