Thursday, November 19, 2015

Overview

Being able to add images is essential to any app. This post will show how to add an image form code. This link is a beautiful guide on how to add an image from both code and in xcode’s storyboard.

Content

1
2
3
// after adding the image to Assets.xcassets
var image = UIImage(named: "pig")
var imageView = UIImageView(image: image)

Random Posts