UITableView backgroundColor always gray on iPad

前端 未结 9 1455
小蘑菇
小蘑菇 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 18:39

    Try one of these.

    [myTableView setBackgroundView:nil];
    [myTableView setBackgroundView:[[[UIView alloc] init] autorelease]];
    

提交回复
热议问题