title: parentViewController return null on IOS
body: <p>I am presenting a view controller modally using this code :</p>
  
  <pre><code>UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
      SubmitAYoNViewController *ivc = [storyboard instantiateViewControllerWithIdentifier:@"SubmitAYoN"];
      [ivc setModalPresentationStyle:UIModalPresentationFullScreen];
      [self presentViewController:ivc animated:YES completion:nil];
  </code></pre>
  
  <p>Then in my SubmitAYoNViewController I have this:</p>
  
  <pre><code>  NSLog(@"%@",self.parentViewController);
      if([self.parentViewController isKindOfClass:[YesOrNoViewController class]]) {
          NSLog(@"do something");
  }
  </code></pre>
  
  <p>self.parentVeiwController is NULL. Why is that?</p>
  
  <p>EDIT : I want to access a method from my parent view controller, then one that the SubmitAYoN was opened from.</p>
  
  <p>SOLUTION : I used delegates instead. As per answers below, the presentViewController does not create a parent-child relationship.</p>