UITableViewの背景に画像を使う

7月 15th, 2009 by roguer Leave a reply »

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

PregCalc_05ja

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

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

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

この記事の関連する投稿:

    None Found

Related Posts with Thumbnails
Advertisement
 

3 comments

  1. Tokida - Roguer より:

    @hkato193 こんな感じでいかがでしょうか?試してみてください。: UITableViewの背景に画像を使う http://roguer.info/2009/07/15/1343/

  2. KatokichiSoft より:

    コレは使える。 RT @tokida UITableViewの背景に画像を使う*† | Roguer http://digg.com/u18LfV

  3. siyo's sbm より:

    iPhone: UITableViewの背景に画像を使う | Roguer : http://roguer.info/2009/07/15/1343/

コメントをどうぞ

Additional comments powered by BackType