微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

DKImagePickerController 库的正确使用方法

如何解决DKImagePickerController 库的正确使用方法

*** 我正在处理的事情: 我使用 DKImagePickerController here is full documentation 从照片库上传应用程序中的图像或通过相机拍照;文档中有非常简单的图像选择器控制器实例:

    let pickerController = DKImagePickerController()
    pickerController.sourceType = .camera  //here you can use another source type .photo
    pickerController.didSelectAssets = { (assets: [DKAsset]) in
    print("didSelectAssets")
    print(assets)
    }
    self.presentViewController(pickerController,animated: true) {}

***问题是:当这个控制器出现并且突然用户不想拍照并点击右上角的“关闭”按钮时,不仅这个图像选择器控制器关闭,而且另一个根视图控制器也关闭了。

你能帮我了解一下发生了什么吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。