LoginSignup
13
13

More than 5 years have passed since last update.

UITableViewの背景を透過色にする

Posted at
- (void)viewDidLoad
{
  [super viewDidLoad];

  UIView *backgroundView = [[UIView alloc] initWithFrame:self.tableView.bounds];
  backgroundView.backgroundColor = [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:0.9];
  self.tableView.backgroundView = backgroundView;
}

普通にtableViewのbackgroundColorに設定すると、奇麗に表示されません。

13
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
13