Skip to content

Commit

Permalink
fixed ios7 warnings for dismissModalViewControllerAnimated vs dismiss…
Browse files Browse the repository at this point in the history
…ViewControllerAnimated:completion: etc
  • Loading branch information
adamwulf committed Dec 26, 2013
1 parent 022a394 commit 5088999
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 5088999

Please sign in to comment.