Author Topic: How do I clear an image from an image view?  (Read 1745 times)

kjmcneish

  • Administrator
  • *****
  • Posts: 719
    • View Profile
How do I clear an image from an image view?
« on: March 20, 2015, 09:16:01 AM »
You can clear an image from an image view by settings its image property to nil. For example:

Code: [Select]
self.myImageView.image = nil
All the best!
Kevin McNeish
Author of Learn to Code in Swift: https://itunes.apple.com/us/book/learn-to-code-in-swift/id942956811?mt=11