gpt4 book ai didi

ios - 关闭 UIImagePickerController 在 IOS 7 中不工作

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:28:45 25 4
gpt4 key购买 nike

我已经尝试了各种关闭 UIImagePickerController 的变体,但都没有成功。我做错了什么。

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo{
[picker.parentViewController dismissViewControllerAnimated:YES completion:nil];
imageview.image = image;


}

- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker{

[picker.parentViewController dismissViewControllerAnimated:NO completion:nil];

}

我不知道我哪里做错了我在 iOS 7 上毁了它。任何人都可以建议我什么是正确的方法吗?

最佳答案

- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker{

[self dismissViewControllerAnimated:NO completion:nil];

}

关于ios - 关闭 UIImagePickerController 在 IOS 7 中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21720372/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com