UITableViewの背景に画像を使う

@hkato193さんよりTwitter経由での質問があったので参考までに

PregCalc_05ja

実際に私の稚拙アプリの中では背景を変更しているのでその方法を書いておきます。(表示が見づらいのはご了承ください)

UIColor *col = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background.png"]];
[tableView setBackgroundColor:col];
[col release];

この定義で背景画像(background.png)が背景に表示されるかと思います。


3 thoughts on “UITableViewの背景に画像を使う”

コメントを残す

Created by roguer.info 2016