Roguer

iPhoneとかiPadとかモレスキンとか文房具の話

UITableViewの背景に画像を使う

| 12 Comments

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

PregCalc_05ja

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

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

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

Related Posts with Thumbnails

12 Comments

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

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

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

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

  5. これは便利な方法。・・・それにしてもUIColorでイメージを使用できるとは思わなかった。

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

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

  8. UITableViewの背景に画像を使う « Roguer – http://roguer.info/2009…

  9. UITableViewの背景に画像を使う » Roguer – http://roguer.info/2009…

  10. UITableViewの背景に画像を使う at Roguer http://t.co/nw5FdYU via @AddThis

  11. これは便利!繰り返しも勝手にやってくれるんですな〜

  12. UITableViewの背景に画像を使う | Roguer http://roguer.info/2009…

コメントを残す

Required fields are marked *.

*