Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dismissModalViewControllerAnimated is deprecated [duplicate]

I am in the middle of trying to convert this app so I can use it in Xcode 5 and iOS7, it is saying dismissModalViewControllerAnimated is deprecated.

[self.navController dismissModalViewControllerAnimated:YES];

Any suggestions?

like image 758
Benjamin Porter Avatar asked Sep 26 '13 16:09

Benjamin Porter


2 Answers

Try:

[self dismissViewControllerAnimated:YES completion:nil];
like image 150
Abdullah Shafique Avatar answered Oct 15 '22 22:10

Abdullah Shafique


The new method is:

    [self.navController dismissViewControllerAnimated:NO
                                           completion:nil];

The word modal has been removed

like image 22
Hemant Chittora Avatar answered Oct 15 '22 23:10

Hemant Chittora