`

iOS,iphone 更改 UITableView 背景

    博客分类:
  • ios
 
阅读更多

    UIImageView *backgroundImageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"background.png"]];

    self.tableView.backgroundView = backgroundImageView;

 

//    UIView*backView = [[UIView alloc]initWithFrame:self.view.frame];  

//    backView.backgroundColor= [UIColor colorWithPatternImage:[UIImage imageNamed:@"background.png"]]; 

//    self.tableView.backgroundView= backView;

 

第一种,更真实

第二种,图片拉伸放大了

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics