mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-30 07:00:49 +00:00
fixed "dismissModalViewControllerAnimated is deprecated" warning when compiling the SDK with deployment target 6.0
This commit is contained in:
parent
abc639c18c
commit
bafd9a0fff
@ -222,7 +222,7 @@
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(feedbackComposeViewControllerDidFinish:)]) {
|
||||
[self.delegate feedbackComposeViewControllerDidFinish:self];
|
||||
} else {
|
||||
[self dismissModalViewControllerAnimated:YES];
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
}
|
||||
|
||||
@ -263,21 +263,21 @@
|
||||
if ([self.navigationController respondsToSelector:@selector(dismissViewControllerAnimated:completion:)]) {
|
||||
[self.navigationController dismissViewControllerAnimated:YES
|
||||
completion:^(void) {
|
||||
[self dismissModalViewControllerAnimated:YES];
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
}];
|
||||
} else {
|
||||
[self dismissModalViewControllerAnimated:YES];
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
[self performSelector:@selector(dismissAction:) withObject:nil afterDelay:0.4];
|
||||
}
|
||||
} else {
|
||||
[self.navigationController dismissModalViewControllerAnimated:YES];
|
||||
[self.navigationController dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)userDataUpdateFinished {
|
||||
[self.manager saveMessages];
|
||||
|
||||
[self.navigationController dismissModalViewControllerAnimated:YES];
|
||||
[self.navigationController dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
||||
|
||||
// If there is no presenting view controller just remove view
|
||||
if (presentingViewController && self.modalAnimated) {
|
||||
[presentingViewController dismissModalViewControllerAnimated:YES];
|
||||
[presentingViewController dismissViewControllerAnimated:YES completion:nil];
|
||||
} else {
|
||||
[self.navigationController.view removeFromSuperview];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user