Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom TableViewCell contents invisible on ios9 xcode7

Tags:

ios

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 Storyboard with a custom tableviewcell dummycell with a label

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

It shows only the content view

 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?

like image 831
Mohammad Shabaz Moosa Avatar asked Sep 10 '15 15:09

Mohammad Shabaz Moosa


1 Answers

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

like image 151
Simon Bogutzky Avatar answered Oct 15 '22 15:10

Simon Bogutzky