今天在测试拍照换头像的功能时,点击选择程序会莫名的崩溃,很是不解,各处搜索之后,问题解决。
http://stackoverflow.com/questions/18890003/uiimagepickercontroller-error-snapshotting-a-view-that-has-not-been-rendered-re
解决方法如下:
[self presentViewController:imagePicker animated:YES completion:nil];
to
[self presentViewController:imagePicker animated:YES completion:NULL];