且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

UIImagePickerController在相机翻转时冻结

更新时间:2023-11-09 23:22:28

就规则而言,更改代码.代替:

Just for rule, change your code. Instead of:

UIImagePickerController * imgPicker;

写入.h文件:

@property (nonatomic, strong) UIImagePickerController * imgPicker;

而不是将其合成到您的.m文件中:

than synthesize it in your .m file:

imgPicker = _imgPicker;

接下来,每次对该属性的调用都将用self进行调用.

and next every call to this property call with self.