【问题标题】:How to get this background strip in IOS 6?如何在 IOS 6 中获取此背景条?
【发布时间】:2013-01-09 01:38:18
【问题描述】:

我在旧版本中使用过这个背景,更新到 iOS 6.0 后,我无法在 IB 中找到任何地方。我堆栈溢出并使用了这个

self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];

仍然是白色,我现在该怎么办?我需要为此设置图像吗?

【问题讨论】:

    标签: iphone ios cocoa-touch uiview uiimage


    【解决方案1】:

    此功能 groupTableViewBackgroundColor 在 iOS 6 上已弃用。请在背景模式下设置颜色或图像 请看SO answer

    【讨论】:

    • 用这些条带上色。有可能吗?
    • 可能...请解释您的问题还是您想要的?
    • 我可以设置那种颜色,竖条(如上)我需要在上面画吗?
    • 使用这个 self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"tableViewBackground.png"]];
    • 并从stackoverflow.com/questions/12452810/…复制tableViewBackground图像
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-11
    • 2011-03-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多