Search code examples
iosobjective-cuiimageviewstoryboardiboutlet

How to select UIImage in storyboard from View Controller


I am currently trying to select a UIImageView that I have created in the storyboard in my view controller.

Is there a method equivalent to android's findViewbyId in objective c?


Solution

  • Why not just make an IBOutlet for the imageview?

    Then you can just access it by something like

    self.imageView
    

    Where imageView is what you named your outlet.