Custom TableViewCell contents invisible on ios9 xcode7

我只是一个虾纸丫 提交于 2019-12-08 19:41:57

问题


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.

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
}

Has anyone faced similar issue with ios 9?


回答1:


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



来源:https://stackoverflow.com/questions/32506453/custom-tableviewcell-contents-invisible-on-ios9-xcode7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!