title: How to refer to an image from the Images.xcassets folder
body: <p>Here is my code that does not work. I tried first to load the image from file, now I am using a named image:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
      UIImage *imageYouWantToPass = [UIImage imageNamed:@"bl_5_00"];
  
      self.mainImage.image = imageYouWantToPass;
  }
  </code></pre>
  
  <p>If I put an image in the Images.xcassets folder should the above code work? In other words, if the image is not showing, it is due to a mistake elsewhere in my code?</p>