小编Emw*_*wee的帖子

为什么我在xcode 6 beta中得到"必须将自动调整掩码转换为约束以使_setHostsLayoutEngine:YES"

我在swift UITableViewController中有以下代码,但我得到一个"必须将自动调整掩码转换为约束,以便在第二行有_setHostsLayoutEngine:YES异常.我没有更改界面构建器中的任何设置(因此都检查了Autolayout和大小类).

override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell? {
    let cell:TodoItemCell = tableView.dequeueReusableCellWithIdentifier("TodoItemCell", forIndexPath: indexPath) as TodoItemCell
    let row = indexPath.row
    cell.titleLabel.text  = self.todoItems![row].title
    self.callback!(row)
    // Configure the cell...

    return cell
}
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

swift xcode6

40
推荐指数
6
解决办法
2万
查看次数

标签 统计

swift ×1

xcode6 ×1