自定义 TableViewCell 内容在 ios9 xcode7 上不可见
Custom TableViewCell contents invisible on ios9 xcode7
iOS9 升级似乎破坏了我所有的自定义 tableviewcell。他们只显示高度正确的tableviewcell,但里面的所有元素都不见了。
布局在 iOS 8 和 iOS 7 台设备上完美运行。
这是我的 Storyboard 的截图
但是当它出现在设备上时,只显示背景颜色。
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("DummyCell", forIndexPath: indexPath) as! DummyCell
cell.label.text = "DummyLabel"
return cell
}
有人遇到过与 ios 9 类似的问题吗?
我们遇到了同样的问题。检查您的 Storyboard 中的约束。在我们的例子中,某些配置在 iOS 9.
上不起作用
iOS9 升级似乎破坏了我所有的自定义 tableviewcell。他们只显示高度正确的tableviewcell,但里面的所有元素都不见了。
布局在 iOS 8 和 iOS 7 台设备上完美运行。
这是我的 Storyboard 的截图
但是当它出现在设备上时,只显示背景颜色。
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("DummyCell", forIndexPath: indexPath) as! DummyCell
cell.label.text = "DummyLabel"
return cell
}
有人遇到过与 ios 9 类似的问题吗?
我们遇到了同样的问题。检查您的 Storyboard 中的约束。在我们的例子中,某些配置在 iOS 9.
上不起作用