self.navigationController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"fullscreen-bg.png"]];
self.tableView.backgroundColor = [UIColor clearColor];
该代码在iOS 5中运行良好,但在iOS 6中无法运行。在iOS 6中,它只显示默认的细条纹背景。有任何想法吗?如何将背景图像添加到iOS 6中的分组样式UITableViewController?
此外,我发现,原来的代码在这里:http://stackoverflow.com/questions/1813846/add -background-image-to-uitableviewcontroller-in-navigation-based-app –