imagePickerController didFinishPickingImage 没有被调用
我正在尝试保存从 UIImagePickerController 获取的图像,但我不能。
这是我试图用来保存图像的代码:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo {
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil); }
该函数根本没有被调用。
有什么想法吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否分配了 delegate 属性“nofollow noreferrer”>UIImagePickerController 实例?如果您想收到通知(因此,如果您希望调用您的方法),则需要它。
Have you assigned the
delegate
property of the UIImagePickerController instance ? It is needed if you want to be notified (thus, if you want your method to be called).