草庐IT

setHostsLayoutEngine

全部标签

swift - 为什么我在 xcode 6 beta 中得到 "Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES"

我在swiftUITableViewController中有以下代码,但我得到一个“必须将自动调整掩码转换为约束才能在第2行有_setHostsLayoutEngine:YES异常。我没有更改界面构建器中的任何设置(所以自动布局和大小类均已检查)。overridefunctableView(tableView:UITableView!,cellForRowAtIndexPathindexPath:NSIndexPath!)->UITableViewCell?{letcell:TodoItemCell=tableView.dequeueReusableCellWithIdentifier