我正在将一个视图设置为uitableview的背景。这个视图只是具有colorWithPatternImage。
在iOS6中,它可以正常工作,但在iOS7中没有任何效果,UITableView的背景仍然是白色的。我正在使用Three20库。
我的代码如下:
UIImage *imgBackGround = [UIImage imageNamed: @"my_background.png"];
self.tableView.backgroundColor = [UIColor clearColor];
UIView *backView = [[UIView alloc] initWithFrame:self.view.frame];
[backView setBackgroundColor:[UIColor colorWithPatternImage:imgBackGround]];
self.tableView.backgroundView = backView;
[backView release];
self.view.backgroundColor=[UIColor colorWithPatternImage:imgBackGround];
iOS7 可能出现哪些问题? 求助,谢谢。