这是我的代码:Swift错误:行上的连续声明必须用';'分隔
import UIKit
class PlaylistMasterViewController: UIViewController {
@IBOutlet weak var abutton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
abutton.setTitle("Press me!", forState: .Normal)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "showPlaylistDetailSegue" {
let playlistDetailController = segue.destinationViewController as! PlaylistDetailViewController
playlistDetailController.segueLabelText = "Yay!You Pressed"
}
}
我就上线得到错误!我的xCode版本是6.3.2 ..我无法超越这个,因为应用程序总是失败。我在这里遇到两个错误: 1-行上的连续声明必须用';'分隔 2-预期宣言
在此先感谢
如果您*缩进*您的代码正确,那么你会注意到一个右大括号丢失... –
我永远不会理解人们如何没有正确的缩进程序 - 只是随机线和大括号后彼此没有任何结构...他们应该尝试python ^^ – luk2302