Working with UIImage

From PeformIQ Upgrade
Revision as of 21:54, 16 October 2021 by PeterHarding (talk | contribs) (Created page with "In the target view: <pre> var imageView : UIImageView imageView = UIImageView(frame:CGRectMake(0, 0, 100, 200)); imageView.image = UIImage(named:"image.png") self.vie...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)