Skip to content

Instantly share code, notes, and snippets.

@inonb
Created July 3, 2012 08:54
Show Gist options
  • Save inonb/3038599 to your computer and use it in GitHub Desktop.
Save inonb/3038599 to your computer and use it in GitHub Desktop.
[iOS] イメージビューのIBOutlet作成と画像の表示
// ViewController.h に IBOutlet を作成
@property (strong, nonatomic) IBOutlet UIImageView *imageView;
// ViewController.m で 画像をセット
//(あらかじめ image_name.png をプロジェクトに追加)
self.imageView.image = [UIImage imageNamed:@"image_name"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment