UITableViewCell background color problem

Hello all.


I have been developing an App in Swift 2.0 using Xcode 7 beta 5 for a month or so.

Until yesterday, I have only tested it on my iPhone running iOS 8.4, and the iPhone 5s/6 Simulators running iOS 9.

However, after finishing support for iPad yesterday and testing it on my iPad mini 2 and the iPad Air 2 Simulator, both running iOS 9, I found a very strange problem. All UITableViewCells with custom background colors set in Interface Builder are being rendered in white.


Am I missing something new in Xcode 7? Did any of you go throgh any problem similar to this in the beta?


These screenshots are of the exact same view running on the iPhone 6 Simulator and on the iPad Air 2 Simulator:


iPhone 6 Simulator: https://slimgur.com/image/Ljx

iPad Air 2 Simulator: https://slimgur.com/image/Ljq


Thanks for your attention.

This might be the same bug (or a related one) others have run into - see this thread. The workaround suggested is to try setting the background color in code.

Hi Bruno,


Unchecking "Use Size Classes" option and then coming back and re-checking it again has fixed this issue for some:


  1. In the project navigator, select a storyboard or xib file.The file’s contents open in Interface Builder.
  2. Choose View > Utilities > Show File Inspector.
  3. In the Interface Builder Document section, un-tick the "Use Size Classes" checkbox.
  4. Leave the menu.
  5. Come back and tick the "Use Size Classes" checkbox again.


Max.

I have the same with XCode 6.4 / iOS 8.

UITableViewCell background color problem
 
 
Q