func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell{
let cell: UITableViewCell = UITableViewCell(style: <#T##UITableViewCellStyle#>.Subtitle, reuseIdentifier: "test")
我一直收到错误 editor placeholder in source file
。
我还收到错误 Static member 'Subtitle' cannot be used on instance of type 'UITableViewCellStyle'
。
最佳答案
您的文件中有一个编辑器占位符(编译器很好地指出了这一点)。将错误行改成这样:
let cell: UITableViewCell = UITableViewCell(style: .Subtitle, reuseIdentifier: "test")
关于ios - swift 2 错误 : Editor placeholder in sourcefile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35528631/