Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some methods for modal view controllers have been deprecated in iOS6 or later #31

Closed
sonsongithub opened this issue Oct 16, 2012 · 2 comments

Comments

@sonsongithub
Copy link

dismissModalViewControllerAnimated: and presentModalViewController:animated: had been deprecated in iOS6 or later.

For support iOS6 earlier and later, I used the following code.

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000
    [self presentViewController:vc animated:YES completion:^(void){}];
#else
    [self presentModalViewController:vc animated:YES];
#endif
@sonsongithub
Copy link
Author

Sorry, I took a mistake in the code.

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000
    [authViewController presentViewController:vc animated:YES completion:^(void){}];
#else
    [self presentModalViewController:vc animated:YES];
#endif

@mustafa
Copy link
Contributor

mustafa commented Jan 11, 2013

Fixed

@mustafa mustafa closed this as completed Jan 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants