自定义TableViewCell内容在iOS9 Xcode7上不可见 [英] Custom TableViewCell contents invisible on ios9 xcode7

查看:62
本文介绍了自定义TableViewCell内容在iOS9 Xcode7上不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iOS9升级似乎破坏了我所有的自定义tableviewcell.它们只显示具有正确高度的tableviewcell,但是里面的所有元素都丢失了.

iOS9 upgrade seem to have broken all my custom tableviewcell. They only show tableviewcell with the right height, but all the elements inside are missing.

该布局在iOS 8和iOS 7设备上完美运行.

The layout worked perfectly on iOS 8 and iOS 7 devices.

这是我的故事板的屏幕截图

Here's a screenshot of my Storyboard

但是,当它出现在设备上时,只会显示背景色.

Yet when it comes on the device, only background color shows up.

 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上遇到过类似的问题吗?

Has anyone faced similar issue with ios 9?

推荐答案

我们遇到了同样的问题.检查您的情节提要中的约束.在我们的情况下,某些配置在iOS 9上不起作用.

We had the same issue. Check your constraints in your Storyboard. In our case some configurations did not work on iOS 9.

这篇关于自定义TableViewCell内容在iOS9 Xcode7上不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆