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.ios
妹的,實在是使人煩躁,在ios7的時候沒有問題的。spa
UIImagePickerController *photoVC=[[UIImagePickerController alloc]init]; photoVC.delegate=self; photoVC.mediaTypes=@[(NSString *)kUTTypeImage]; photoVC.sourceType=UIImagePickerControllerSourceTypeCamera; photoVC.allowsEditing=YES; [self presentViewController:photoVC animated:YES completion:NULL];
查了不少資料,原來不止我一我的遇到。。。code
http://stackoverflow.com/questions/25884801/ios-8-snapshotting-a-view-that-has-not-been-rendered-results-in-an-empty-snapshoorm
反正對程序無影響,就繼續用,真心不知道該如何完美解決。it