UITableView backgroundColor always gray on iPad

前端 未结 9 1449
小蘑菇
小蘑菇 2020-11-30 18:02

When I set the backgroundColor for my UITableView it works fine on iPhone (device and simulator) but NOT on the iPad simulator. Instead I get a lig

9条回答
  •  粉色の甜心
    2020-11-30 19:00

    • Simulating iPad 2
    • Running iOS 7.1 through 8.3
    • Built from XCode 6.3

    None of the above worked for my UIViewController->UITableView specified using a single XIB. What did work was moving the whole setup into a Storyboard, and setting the background color using the IB inspector.

提交回复
热议问题