gpt4 book ai didi

swift - AKPickerView -(OSStatus 错误 -600。)

转载 作者:行者123 更新时间:2023-11-30 13:16:32 26 4
gpt4 key购买 nike

我正在尝试使用AKPickerView库创建水平选择器 View 。我将 AKPickerView 库导入为 pod 文件,创建了桥接头并正确完成了所有设置。但是,我得到当我尝试运行该项目时,操作无法完成 - OSStatus 错误 -600。你能告诉我我做错了什么吗?感谢您的帮助。

import UIKit
import AKPickerView

class ViewController: UIViewController, AKPickerViewDelegate, AKPickerViewDataSource {

var myArray = ["one","two","three"]
@IBOutlet var pickerView: AKPickerView!

override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.

self.pickerView = AKPickerView(frame: CGRect.zero)
self.pickerView.delegate = self
self.pickerView.dataSource = self
}


func numberOfItemsInPickerView(pickerView: AKPickerView!) -> UInt {

return UInt(self.myArray.count)
}


func pickerView(pickerView: AKPickerView!, titleForItem item: Int) -> String!{
return self.myArray[item]

}


func pickerView(pickerView: AKPickerView, didSelectItem item: Int) {

// no set up yet
}


}

最佳答案

只需退出您的 iOS 模拟器,然后重新打开模拟器,然后构建源代码即可。

关于swift - AKPickerView -(OSStatus 错误 -600。),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38160975/

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