我想設置一個圖像作爲我的uitableview
的背景。這是我使用的代碼:將背景圖像設置爲uitableview?
self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"background_tableview.png"]];
這是顯示圖像的權利,但只要表中填充一些奇怪的情況發生。部分圖像顯示在每個tableviewcell
中,圖像也隨着表格一起滾動。我怎樣才能讓圖像保持固定,並且每個tableviewcell
都不顯示圖像的一部分?
感謝,
TC
[與背景圖像的UITableView細胞]的可能的複製(http://stackoverflow.com/questions/6329832/uitableview-細胞與背景圖像) – bummi