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

update two deprecated methods to up-to-date version #364

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Classes/ASIAuthenticationDialog.m
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ - (UITextField *)domainField
+ (void)dismiss
{
if ([sharedDialog respondsToSelector:@selector(presentingViewController)])
[[sharedDialog presentingViewController] dismissModalViewControllerAnimated:YES];
[[sharedDialog presentingViewController] dismissViewControllerAnimated:YES completion:nil];
else
[[sharedDialog parentViewController] dismissModalViewControllerAnimated:YES];
[[sharedDialog parentViewController] dismissViewControllerAnimated:YES completion:nil];
}

- (void)viewDidDisappear:(BOOL)animated
Expand All @@ -237,9 +237,9 @@ - (void)dismiss
[[self class] dismiss];
} else {
if ([self respondsToSelector:@selector(presentingViewController)])
[[self presentingViewController] dismissModalViewControllerAnimated:YES];
[[self presentingViewController] dismissViewControllerAnimated:YES completion:nil];
else
[[self parentViewController] dismissModalViewControllerAnimated:YES];
[[self parentViewController] dismissViewControllerAnimated:YES completion:nil];
}
}

Expand Down Expand Up @@ -315,7 +315,7 @@ - (void)show
}
#endif

[[self presentingController] presentModalViewController:self animated:YES];
[[self presentingController] presentViewController:self animated:YES completion:nil];
}

#pragma mark button callbacks
Expand Down