Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone UITableViewController的可滚动背景视图_Iphone_Uitableview - Fatal编程技术网

Iphone UITableViewController的可滚动背景视图

Iphone UITableViewController的可滚动背景视图,iphone,uitableview,Iphone,Uitableview,我想这个背景视图将是可滚动的。现在它的位置在同一个地方 谢谢试试这个: UIImageView *tblBG = [[[UIImageView alloc] initWithFrame:self.view.bounds] autorelease]; tblBG setImage:[UIImage imageNamed:@"evt_det_bg.png"]]; self.tableView.backgroundView=tblBG; self.tableView.backgroundCol

我想这个背景视图将是可滚动的。现在它的位置在同一个地方

谢谢

试试这个:

UIImageView *tblBG = [[[UIImageView alloc] initWithFrame:self.view.bounds] autorelease];
tblBG setImage:[UIImage imageNamed:@"evt_det_bg.png"]];    
self.tableView.backgroundView=tblBG;
self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"evt_det_bg.png"]];