UITableViewCell show white background and cannot be modified on iOS7

后端 未结 14 1392
轻奢々
轻奢々 2020-11-28 18:42

I\'ve implemented a custom table view cell class that inherit from UITableViewCell. The tableview contains a background image, so I want cell\'s background to b

14条回答
  •  误落风尘
    2020-11-28 18:48

    The default background color of an UITableViewCell in iOS 7 is white.

    You have to set the backgroundColor property somewhere in your code. For example, set it after you newly created the cell.

    cell.backgroundColor = [UIColor clearColor];
    

提交回复
热议问题