最初对代码所做的唯一更改是在 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 错误还是我的代码有问题?