gpt4 book ai didi

swift - Sigbart 在尝试获取库图像选择器时

转载 作者:行者123 更新时间:2023-11-28 08:32:51 24 4
gpt4 key购买 nike

当我尝试为我的社交媒体应用程序获取图像选择器 Controller 时,它给我一个错误!

[access] <private>

我尝试制作另一个项目并使用其他 View Controller 和 UITapGestureRecognizers,但没有任何效果!请帮忙!

控制台:2016-07-21 17:43:29.439339 Post[3012:763270] [辅助功能] ****************** 加载 GAX 客户端包 ********* *******2016-07-21 17:43:31.098400 Post[3012:763270] [MC] systemgroup.com.apple.configurationprofiles 路径的系统组容器是/private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles2016-07-21 17:43:31.108233 Post[3012:763270] [MC] 从公共(public)有效用户设置中读取。2016-07-21 17:43:37.273218 发布 [3012:763430] [访问](lldb)

代码:

class LoginVC: UIViewController, UIImagePickerControllerDelegate,    UINavigationControllerDelegate {

override func viewDidLoad() {
super.viewDidLoad()

// Do any additional setup after loading the view.
}

override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}


/*
// MARK: - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
@IBAction func test(_ sender: AnyObject) {
let pickerImg = UIImagePickerController()
pickerImg.delegate = self
pickerImg.sourceType = .photoLibrary
pickerImg.allowsEditing = true
present(pickerImg, animated: true, completion: nil)
}

最佳答案

这在 Swift 的 future 版本中得到了修复。

关于swift - Sigbart 在尝试获取库图像选择器时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38514934/

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