Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为我的分组表视图设置自定义背景(图像)。在 xib 文件中,我在表格下添加了 imageView,将表格设置回 clearColor,它看起来很正常(在 Xib 中!)但是当我启动应用程序时,我看到标准背景
在 Xib 文件中:
在应用中:
// instead of adding a UIImageView to the background self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image_name"]]; self.tableView.backgroundColor = [UIColor clearColor];