Fix crash on rotation plus/max iPhones
This commit is contained in:
parent
088f932491
commit
9733495593
@ -619,7 +619,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 14;
|
CURRENT_PROJECT_VERSION = 15;
|
||||||
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
||||||
INFOPLIST_FILE = AutoCat/Info.plist;
|
INFOPLIST_FILE = AutoCat/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||||
@ -641,7 +641,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 14;
|
CURRENT_PROJECT_VERSION = 15;
|
||||||
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
||||||
INFOPLIST_FILE = AutoCat/Info.plist;
|
INFOPLIST_FILE = AutoCat/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||||
|
|||||||
@ -31,7 +31,7 @@ class MainSplitController: UISplitViewController, UISplitViewControllerDelegate
|
|||||||
let tabController = splitViewController.viewControllers.first as? UITabBarController
|
let tabController = splitViewController.viewControllers.first as? UITabBarController
|
||||||
let selectedNavController = tabController?.selectedViewController as? UINavigationController
|
let selectedNavController = tabController?.selectedViewController as? UINavigationController
|
||||||
|
|
||||||
if selectedNavController?.viewControllers[1] is ReportController {
|
if selectedNavController?.viewControllers.count ?? 0 > 1 && selectedNavController?.viewControllers[1] is ReportController {
|
||||||
if let controllers = selectedNavController?.popToRootViewController(animated: false) {
|
if let controllers = selectedNavController?.popToRootViewController(animated: false) {
|
||||||
let nav = UINavigationController()
|
let nav = UINavigationController()
|
||||||
nav.setViewControllers(controllers, animated: true)
|
nav.setViewControllers(controllers, animated: true)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user