嗨我是IOS編程的新手,並且試圖瞭解下面的錯誤實際上告訴我以及如何解決它。任何人都可以幫忙嗎?錯誤:在super.init初始化之前使用自己的屬性訪問'reuseidentifier'
下面添加我的TableViewCell.swift文件中的代碼。
import UIKit
class SweetTableViewCell: UITableViewCell {
@IBOutlet var usernameLabel: UILabel! = UILabel()
@IBOutlet var timestampLabel: UILabel! = UILabel()
@IBOutlet var profileImageView: UIImageView! = UIImageView()
@IBOutlet var sweetTextView: UITextView! = UITextView()
required init(coder aDecoder: (NSCoder!)) {
super.init(coder: aDecoder)
}
override init(style: UITableViewCellStyle, reuseIdentifier reuseIdenifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
// Initialization code
}
}
你能解決您的代碼格式化,並在你的問題的身體證明你是錯誤信息接收? – 2015-03-08 19:00:39