简体   繁体   中英

Custom TableViewCell contents invisible on ios9 xcode7

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 故事板与自定义tableviewcell dummycell与标签

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM