Pages

Monday 29 December 2014

'dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0

"dismissModalViewController" that method is deprecated in iOS 6.0,so Xcode gives warning when your build run on iOS 6.0 and above version..

so simply we can resolve that warning as


Replace

[self dismissModalViewControllerAnimated:YES];

To

[self dismissViewControllerAnimated:YES completion:nil];

No comments:

Post a Comment