Revert "IOS7: Implement new delegate methods replacing deprecated ones"

This reverts commit 46d6a76b8e.
The commit broke saving and restoring state when compiling with SDK 13
or above and running on iOS 12 or below. The functions to save/restore
were no longer called.
This commit is contained in:
Thierry Crozat
2023-05-03 01:54:22 +01:00
parent 527c723009
commit d2554266b3
@@ -110,19 +110,11 @@
[_view saveApplicationState];
}
#ifdef __IPHONE_13_2
- (BOOL)application:(UIApplication *)application shouldSaveSecureApplicationState:(NSCoder *)coder {
#else
- (BOOL)application:(UIApplication *)application shouldSaveApplicationState:(NSCoder *)coder {
#endif
return YES;
}
#ifdef __IPHONE_13_2
- (BOOL)application:(UIApplication *)application shouldRestoreSecureApplicationState:(NSCoder *)coder {
#else
- (BOOL)application:(UIApplication *)application shouldRestoreApplicationState:(NSCoder *)coder {
#endif
return YES;
}