title: How to add image in image view ios
body: <p>I have a view controller,on top of this I have added a image view.Now I wanted to load some image dynamically to that image view.Fallowing is my code:</p>
  
  <pre><code>- (void)viewDidLoad
  {
  [super viewDidLoad];
  // Do any additional setup after loading the view.
  if (getAnySelectedRow == 0)
  {
      //Load corresponding image
      NSLog(@"1 image loaded");
  }
  else if (getAnySelectedRow == 1)
  {
      //Load corresponding image
      NSLog(@"2 image loaded");
  }
  else if (getAnySelectedRow == 2)
  {
      //Load corresponding image
      NSLog(@"3 image loaded");
  }
  
  }
  </code></pre>
  
  <p>Note: Image view is already loaded on top of view controller.So I believe no need to init new image view.</p>
  
  <p>How can I do this?</p>