title: How to use custom init of ViewController in Storyboard
body: <p>I have one storyboard in which all of my viewControllers are placed. I'm using <code>StoryboardID</code> as:</p>
  
  <pre><code>AddNewPatientViewController * viewController =[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"addNewPatientVC"];
   [self presentViewController:viewController animated:YES completion:nil];
  </code></pre>
  
  <p>In <code>AddNewPatientViewController</code> I've added a custom init method or constructor you can say as:</p>
  
  <pre><code>-(id) initWithoutAppointment
  {
      self = [super init];
      if (self) {
          self.roomBedNumberField.hidden = true;
      }
      return self;
  }
  </code></pre>
  
  <p>So my question is by using the above wat of presenting view controller how can I <code>init</code> it with this custom <code>init</code> I've made.
  <br ><br >I've tried doing this as areplacement of above code but it didn't work.</p>
  
  <pre><code>AddNewPatientViewController *viewController = [[AddNewPatientViewController alloc] initWithoutAppointment];
   [self presentViewController:viewController animated:YES completion:nil]; 
  </code></pre>