Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

presentModalViewController in iOS6

Tags:

In my app's code I am still presenting viewcontrollers modally with presentModalViewController. This is deprecated in iOS 6. Does that mean this method has no effect on devices running iOS 6?

If yes, how can I make my app present viewcontrollers modally on iOS 6? My Xcode version does not support iOS 6, so all new methods in iOS 6 are unavailable to me.

like image 226
user975561 Avatar asked Feb 07 '13 08:02

user975561


1 Answers

If you have

[self presentModalViewController:aController animated:YES];

change it to

[self presentViewController:aController animated:YES completion:nil];
like image 83
Gajendra K Chauhan Avatar answered Nov 15 '22 11:11

Gajendra K Chauhan