iPhone UITableView PlainStyle with custom background image - done “entirely” in code

后端 未结 5 950
情深已故
情深已故 2021-02-09 08:28

I have been all over the place, seems the UITableView with a static background issue is well documented, but no one with a straight forward solution? Im building my

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-09 08:49

    Some tips:

    • If using a UISplitViewController:

      splitViewController.view.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
      
    • If using a UINavigationController:

      navigationController.view.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
      
    • If using both a UISplitViewController and a UINavigationController:

      navigationController.view.backgroundColor = [UIColor clearColor];
      splitViewController.view.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
      

    Be sure to set the background color of any UIView you want to see through that is on top of the UINavigationController or UISplitViewController to [UIColor clearColor].

提交回复
热议问题