title: iOS - show UIPIckerView made in Storyboard instead of keyboard
body: <p>I need to show UIPickerView instead of keyboard along with cancel/done buttons. So I created a PickerViewController.h/.m and built a view in Storyboard:
  <img src="https://i.stack.imgur.com/QpLfZ.png" alt="enter image description here"></p>
  
  <p><strong>PickerViewController.h</strong>:</p>
  
  <pre><code>@interface PickerViewController : UIViewController &lt;UIPickerViewDataSource,UIPickerViewDelegate&gt;;
  @property NSArray *data;
  </code></pre>
  
  <p><strong>PickerViewController.m</strong> has picker delegate methods:</p>
  
  <pre><code>-(NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
  {
      return [self.data objectAtIndex:row];
  }
  -(CGFloat)pickerView:(UIPickerView *)pickerView rowHeightForComponent:(NSInteger)component
  {
      return 25;
  }
  
  - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
  {
  }
  </code></pre>
  
  <p>Now I'm trying to use it in another ViewController to show up on editing of text field:</p>
  
  <pre><code>UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main"
                                                           bundle: nil];
  
  PickerViewController *pickerVC = (PickerViewController*)[mainStoryboard
                                                instantiateViewControllerWithIdentifier: @"PickerViewController"];
  pickerVC.data = @[@"house",@"land",@"office"];
  UIView *picker = pickerVC.view;
  picker.frame = CGRectMake(0, 0, 320, 210);    
  self.textFieldRealtyType.inputView = picker;    
  </code></pre>
  
  <p>However when picker is being shown it's empty. Is it possible to use "standalone" picker from storyboard or do I need to create it programmatically?</p>