title: Populate UIPickerView with images
body: <p>I'm trying to populate a UIPickerView with images.
  Here is where i create programmatically the PickerView and i fill a <code>NSMutableArray</code> with 35 images called 1.png, 2.png ..., 35.png</p>
  
  <pre><code>@interface ShowImagesPVC () &lt;UIPickerViewDataSource, UIPickerViewDelegate&gt;
  @property (strong, nonatomic) NSMutableArray *arrayOfImages;
  @end
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
  
      for(int i = 1; i &lt; 36; i++){
          NSString *tmpString = [NSString stringWithFormat:@"%d.png",i];
          [_arrayOfImages addObject:[[UIImageView alloc]initWithImage:[UIImage imageNamed:tmpString]]];
      }
  
      UIPickerView *myPickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(-5, 0, 315, 200)];
      myPickerView.delegate = self;
      myPickerView.dataSource = self;
      myPickerView.showsSelectionIndicator = YES;
      [self.view addSubview:myPickerView];
  }
  </code></pre>
  
  <p>now i've implemented these methods</p>
  
  <pre><code>- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
  {
      return [_arrayOfImages objectAtIndex:row];
  }
  
  - (NSInteger)numberOfComponentsInPickerView: (UIPickerView *)pickerView
  {
      return 1;
  }
  
  -(NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
  {
      return _arrayOfImages.count;
  }
  </code></pre>
  
  <p>The problem is that the UIPicker is created but it's empty, so i tried to <code>NSLog</code> the method <code>- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view</code> and it seems it's never called.</p>
  
  <p>Any idea why?</p>