gpt4 book ai didi

ios - xcode 6.1 (Swift) 中的 SIGABRT 运行时错误

转载 作者:搜寻专家 更新时间:2023-10-31 08:23:54 26 4
gpt4 key购买 nike

与最初相比,对代码所做的唯一更改是在 ViewControl.swift

中进行的
override func viewDidLoad() {
newMessage.hidden = true

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

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


@IBOutlet weak var newMessage: UILabel!

@IBOutlet var newButton: UIButton!

@IBAction func newButtonAction(sender: UIButton) {
newMessage.hidden = false
}
}

但我在 AppDelegate.swift 中遇到了 SIGABRT 错误

class AppDelegate: UIResponder, UIApplicationDelegate {

这是 Xcode 6.1 错误还是我的代码有问题?

最佳答案

您的 xib/storyboard 中很可能发生了可疑的事情。检查连接以确保您所有的 IBOutletsIBActions 都正确连接,并且没有旧的、已删除或已修改的变量留下的任何连接。

除此之外,没有更多信息就很难说了。查看thisthis寻求更多帮助。

关于ios - xcode 6.1 (Swift) 中的 SIGABRT 运行时错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26540170/

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