fixed ios7 warnings for dismissModalViewControllerAnimated vs dismissViewControl…
…lerAnimated:completion: etc
Showing
1 changed file
with
5 additions
and
5 deletions
| @@ -217,9 +217,9 @@ static const NSUInteger kDomainSection = 1; | @@ -217,9 +217,9 @@ static const NSUInteger kDomainSection = 1; | ||
| 217 | + (void)dismiss | 217 | + (void)dismiss |
| 218 | { | 218 | { |
| 219 | if ([sharedDialog respondsToSelector:@selector(presentingViewController)]) | 219 | if ([sharedDialog respondsToSelector:@selector(presentingViewController)]) |
| 220 | - [[sharedDialog presentingViewController] dismissModalViewControllerAnimated:YES]; | 220 | + [[sharedDialog presentingViewController] dismissViewControllerAnimated:YES completion:nil]; |
| 221 | else | 221 | else |
| 222 | - [[sharedDialog parentViewController] dismissModalViewControllerAnimated:YES]; | 222 | + [[sharedDialog parentViewController] dismissViewControllerAnimated:YES completion:nil]; |
| 223 | } | 223 | } |
| 224 | 224 | ||
| 225 | - (void)viewDidDisappear:(BOOL)animated | 225 | - (void)viewDidDisappear:(BOOL)animated |
| @@ -237,9 +237,9 @@ static const NSUInteger kDomainSection = 1; | @@ -237,9 +237,9 @@ static const NSUInteger kDomainSection = 1; | ||
| 237 | [[self class] dismiss]; | 237 | [[self class] dismiss]; |
| 238 | } else { | 238 | } else { |
| 239 | if ([self respondsToSelector:@selector(presentingViewController)]) | 239 | if ([self respondsToSelector:@selector(presentingViewController)]) |
| 240 | - [[self presentingViewController] dismissModalViewControllerAnimated:YES]; | 240 | + [[self presentingViewController] dismissViewControllerAnimated:YES completion:nil]; |
| 241 | else | 241 | else |
| 242 | - [[self parentViewController] dismissModalViewControllerAnimated:YES]; | 242 | + [[self parentViewController] dismissViewControllerAnimated:YES completion:nil]; |
| 243 | } | 243 | } |
| 244 | } | 244 | } |
| 245 | 245 | ||
| @@ -315,7 +315,7 @@ static const NSUInteger kDomainSection = 1; | @@ -315,7 +315,7 @@ static const NSUInteger kDomainSection = 1; | ||
| 315 | } | 315 | } |
| 316 | #endif | 316 | #endif |
| 317 | 317 | ||
| 318 | - [[self presentingController] presentModalViewController:self animated:YES]; | 318 | + [[self presentingController] presentViewController:self animated:YES completion:nil]; |
| 319 | } | 319 | } |
| 320 | 320 | ||
| 321 | #pragma mark button callbacks | 321 | #pragma mark button callbacks |
-
Please register or login to post a comment