Working with UIImage

From PeformIQ Upgrade
Jump to navigation Jump to search

In the target view:

 var imageView : UIImageView

 imageView  = UIImageView(frame:CGRectMake(0, 0, 100, 200));

 imageView.image = UIImage(named:"image.png")

 self.view.addSubview(imageView)