0

我没有成功尝试过:

1. [self dismissViewControllerAnimated:YES completion:Nil];



 2. [[self parentViewController] dismissViewControllerAnimated:YES
    completion:Nil];



 3. //from the parent view controller using a delegate 
        -(void)closeReplaceController
        {
            DLog(@"closeReplaceController");
            [self dismissViewControllerAnimated:YES completion:Nil];

        }
4

1 回答 1

1

我会尝试这样的事情:

-(void)killPresentingView
{
    UIViewController *vc = [self presentingViewController];
    [vc dismissViewControllerAnimated:YES completion:nil];
}

看看会发生什么。如果我理解正确,这应该可以。

于 2013-08-06T21:04:40.493 回答