Jason Hocker
Jason Hocker

Reputation: 7067

UITableView background black and empty cells black on iOS 8

Xcode 7.0b3 iOS Deployment Target 8.0

Here's the test app I made to isolate the issue.

Created a UITableViewController in a UINavigationController. Tap a cell, and pushes another one of those table view controllers. This table view controller has a random number of sections and rows in each section.

On iPhone running iOS 9, table scrolls correctly... empty cells are while. On iPhone running iOS 8, table has black background. Empty rows are black instead of white.

In our "real" app, we sometimes see contents of old UITableView in a new UITableView. So I tried to isolate the issue to see if its a bug building with the Xcode 7 beta.

Does this sound like a bug building with the beta xcode and using iOS 8? Or did we create a bug/doing something wrong?

Upvotes: 1

Views: 1850

Answers (1)

KleMiX
KleMiX

Reputation: 332

I had the same issue in Xcode 7 beta 3. Temporary workaround was to set tableView.backgroundColor = UIColor.whiteColor().

As of Xcode 7 beta 4 issue seems to be fixed.

Upvotes: 2

Related Questions