title: change image programatically according to uiPickerView
body: <p>Im using a uiPickerView that haves images instead of strings for the selections, is working ok for showing the images, I got inspiration from the apple UIcatalog example on how to put the images,</p>
  
  <p>Im implementing it programatically no IB,</p>
  
  <p>So the question is, how to change an image according to the selected cell?</p>
  
  <p>i have 
  * MainVC (my main view controller)
  * CustomView (defining picker size)
  * CustomPickerDataSource (the data source for the picker  :)</p>
  
  <p>in CustomPickerDataSource, send the data for wich row was selected</p>
  
  <pre><code>- (void)pickerView:(UIPickerView *)pickerView didSelectRow: (NSInteger)row inComponent:(NSInteger)component {
  // Handle the selection
  NSLog(@"seleccionokkkk: %d", row);
  [MainVC entro:row];
  }
  </code></pre>
  
  <p>and in my MainVC</p>
  
  <pre><code>+(void) entro: (int) cuca {
  
  NSLog(@"sumbalo :%d", cuca);
   }
  </code></pre>
  
  <p>I get the number of cell selected on my MainVC, which is where I want to show the different images,
  but when selecting the image in my <code>+(void) entro: (int) cuca</code>
  I get warnings of course as Im setting instance variables with a class method,</p>
  
  <p>so how can I show the image according to which cell number I receive?</p>
  
  <p>Pseudocode:
  if image == 0, show image0</p>
  
  <p>Where to put my image showing code?, and how to set the variable for the incoming message?</p>
  
  <p>thanks a lot!</p>