title: Calling viewwillappear after dismissing modalviewcontroller
body: <p>How can I call <code>viewwillappear</code> after dismissing <code>modalviewcontroller</code>?</p>
  
  <p>Any idea please because after dismissing my <code>viewwillappear</code> didn't get called : </p>
  
  <p>presenting my viewcontroller modally : 
  //firsviewcontroller :</p>
  
  <pre><code>-(IBAction)AddActivity:(id)sender{
  
  
      CreateActivity *addViewController = [[CreateActivity alloc] initWithNibName:@"CreateActivity" bundle:nil];
  
      addViewController.delegate = self;
      addViewController.modalPresentationStyle = UIModalPresentationFormSheet;
  
      addViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
  
      [self presentModalViewController:addViewController animated:YES];
  
  
      addViewController.view.superview.frame = CGRectMake(50, 260, 680, 624);
  
  }
  </code></pre>
  
  <p>//secondvioewcontroller : I create An alertview to dismiss this modalview , but the viewwillapear didn't get called: </p>
  
  <pre><code>- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
      if (buttonIndex == 0){
  
  
          if ([self respondsToSelector:@selector(presentingViewController)]){
              [self.presentingViewController dismissModalViewControllerAnimated:YES];
          }
          else {
              [self.parentViewController dismissModalViewControllerAnimated:YES];
          }
      }
  }
  </code></pre>