2010年12月17日 過去Blog

IBOutlet UIImageView *bgImage;

@property(nonatomic,retain) IBOutlet UIImageView *bgImage;

上記のようなbgImageがInterfaceで宣言され、Interface Builder上に、UIImageViewが配置されているとすると以下のように実装すれば、該当箇所に画像が挿入されます。

bgImage.image = [UIImage imageNamed:@”bg.png”];

もしくは、以下のようにします。

UIImage *image = [UIImage imageNamed:@”bg.png”];

 

[bgImage setImage:image];

この投稿へのコメント

コメントはまだありません。

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます。
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA


ピックアップ記事

zencart META内のauthor、generatorの設定

2010年06月29日 過去Blog
includes/templates/テンプレート名/common 内のhtml_header.phpを編集。 What is Darvocet?…
「zencart META内のauthor、generatorの設定」をはてなブックマークに追加

addressbook内のデータをtableViewに表示させる

2011年01月17日 過去Blog
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusab…
「addressbook内のデータをtableViewに表示させる」をはてなブックマークに追加

xcodeでメモリリークを簡単に調べる方法

2011年03月03日 過去Blog
以下のサイトにあるようなことが出来るらしい。 http://www.lastday.jp/2011/03/01/memory-leak-xcod やったことないので、今度やってみようと思います。
「xcodeでメモリリークを簡単に調べる方法」をはてなブックマークに追加

ユーザーエージェントを調べる方法

2009年11月24日 過去Blog
ユーザーエージェントを調べる方法 javascript:alert(navigator.userAgent) http://katozyun.web.fc2.com/urawaza/ua02.html http://somethinweb.jp/test123/useragent.php また,UAは以下のサイトでも確認することができます. * 診断くん:http://www.t…
「ユーザーエージェントを調べる方法」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy