title: iOS:Subclassing UIPickerView not loading in the main view
body: <p>I'm trying to subclass UIPickerView but is not loading in the main view.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>//Picker.h:
  @interface Picker : UIPickerView
  
  - (id)initWithFrame:(CGRect)frame;
  
  //Picker.m:
  - (id)initWithFrame:(CGRect)frame
  {
      self = [super initWithFrame:frame];
      if (self) {
      }
      return self;
  }
  
  - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView{
      return 1;
  }
  
  - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component{
      return 3;
  }
  
  - (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {
      return @"bla";
  }
  </code></pre>
  
  <p>This the code on my viewController:</p>
  
  <pre><code>-(void)viewDidAppear:(BOOL)animated
  {
      [super viewDidAppear:YES];
      self.myPicker = [[Picker alloc] initWithFrame:self.view.frame];
      [self.view addSubview:_myPicker];
  }
  </code></pre>
  
  <p>Any of you knows why the picker is not loading on my view?</p>
  
  <p>I'll really appreciate your help.</p>