I´m presenting a view this way:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
ContractDetailsViewController *contractDetailsViewController = [[ContractDetailsViewController alloc] init];
contractDetailsViewController.client = self.client;
contractDetailsViewController.contractId = [NSString stringWithFormat:@"%d", indexPath.row];
[self presentViewController:[[UINavigationController alloc]initWithRootViewController:contractDetailsViewController] animated:YES completion:^{
}];
}
After the view appears i dismiss it with:
- (void)close
{
[self dismissViewControllerAnimated:YES completion:^{}];
}
The bug is that the view disappears, the view that was behind it also disappears right after.