title: dismissViewControllerAnimated is called but ViewController is not dismissed on device but work fine on the similator, why?
body: <p>i have a main <code>UITableViewController</code> and a button to go to the settings, on settings i have another button to go back to the main view. this works fine on the simulator but when i test on the device, the app doesn't work. the button on the settings to go back to the main view don't work. </p>
  
  <p>i have no idea why this is working fine on the simulator and don't work on the device. both have the same ios version.  </p>
  
  <pre><code>- (IBAction)CancelCreation{
  
     // [self dismissModalViewControllerAnimated:YES];
     // [self dismissViewControllerAnimated:YES completion:nil];
      [viewControllerMain.presentingViewController dismissViewControllerAnimated:YES completion:NULL];
     // UIViewController *parentController = self.presentingViewController;
    //  [self.navigationController popToRootViewControllerAnimated:YES];
  //    [self.view.window.rootViewController dismissViewControllerAnimated:YES completion:NULL];
  }
  </code></pre>
  
  <p>all the comment lines are attemps i make to see if works but didn't work. On de simulator all work fine but on the device nothing work. maybe is something wronk because i use ARC.</p>
  
  <p>I use a segue to go from the main viewcontroller to the new controller. On the new controller i use</p>
  
  <pre><code>- (IBAction)CancelCreation{ 
      [self dismissViewControllerAnimated:YES completion:NULL];
  }
  </code></pre>
  
  <p>to close the viewcontroller. I guess this works halfway, i mean the view don't respon anymore but didn't dissapear. </p>
  
  <p>the weird part is, this works one time and now don't work.</p>
  
  <p>I only have an ipad to test the app so i make the app iphone only and test if work on the device. today i make the app universal again, and tested on the device, all work fine. I have two diferent storyboards one for the iphone and one for the ipad. Maybe this is the problem i'm using a diferent kind of segue with the same name on a diferent storyboard. i don't know.</p>