IOS: Add back new delegate methods but keep old ones

On iOS 12 and below, the one delegate methods are called. On iOS13.2
and above if both sets are implemented only the new delegate methods
are called, which prevent getting the deprecation warning.
This commit is contained in:
Thierry Crozat 2023-05-03 21:33:37 +01:00 committed by Lars Sundström
parent f8c00b17e5
commit 61bbe1187b

View file

@ -118,6 +118,16 @@
return YES;
}
#ifdef __IPHONE_13_2
- (BOOL)application:(UIApplication *)application shouldSaveSecureApplicationState:(NSCoder *)coder {
return YES;
}
- (BOOL)application:(UIApplication *)application shouldRestoreSecureApplicationState:(NSCoder *)coder {
return YES;
}
#endif
- (void)application:(UIApplication *)application didDecodeRestorableStateWithCoder:(NSCoder *)coder {
_restoreState = YES;
}