无法更改 iPad UI 中的 UITableView 背景颜色

发布于 2024-12-22 22:51:40 字数 149 浏览 5 评论 0原文

当我为 iPhone 创建 UIViewController 时,我可以轻松更改 UITableView 背景色,但是当我为 iPad 创建 UIViewController 时,我无法更改 UITableView 背景色。为什么?

我使用 XCode 版本 4.2。

When I create UIViewController for iPhone I can easily change UITableView backcolor, but when I create for iPad I cannot change UITableView backcolor. Why?

I use XCode Version 4.2.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不应该有什么不同。

您是否尝试直接在代码中更改它?在您的控制器实现中,

- (void)viewDidLoad {

  [ self.view setBackgroundColor:[UIColor blueColor] ];

  [ super viewDidLoad ];

}

如果没有任何代码或更高的精度,我认为我们无法为您提供更多帮助。

It shouldn't be different.

Did you try to change it in the code directly? In your controller implementation

- (void)viewDidLoad {

  [ self.view setBackgroundColor:[UIColor blueColor] ];

  [ super viewDidLoad ];

}

Without any code or more precision we can't really help you more than that, I think.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文