LoginSignup
1
1

More than 5 years have passed since last update.

Swift : 画像の設定

Last updated at Posted at 2015-12-06

Swift内で画像の設定をするときに使用。
Gifアニメーション的にアニメーションを動かしたり、
画像を再設定するときなど、初期値から切り替えるのにも使えます。

//outlet イメージビュー
    @IBOutlet weak var alianImage: UIImageView! 
//Action ボタンアクションなど
    @IBAction func updateImage(sender: AnyObject) {
            alianImage.image = UIImage(named: "test1.tiff")
    }
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1