Post

Replies

Boosts

Views

Activity

Reply to SplitviewController not as rootViewController
OLD thread Answer: Apple say: "...the split view controller is typically the root view controller of your app’s window." typically... so it doesn't have to be. Alternatively, can't you just set your rootViewController in code (based on some condition, where the app supports SplitViewController)? if supportsSplitViewController { appDelegate?.window??.rootViewController = splitViewController } else { // something else... } My Requirement: The problem is I am using this in an SDK, I can't have much complex operation for my user. In this approach going back from SDK may want more concentration. As I need all the VC that is opened before I set the SplitVC as root, Because the APP may have tabbarviewController/UINavigation as root that needs to be restored when the app leaves SDK So kindly gave me any other approaches if possible
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’22
Reply to SplitviewController not as rootViewController
**Sorry guys Accidently Marked the ANSWER as Solved ** The problem is I am using this in an SDK, I can't have much complex operation for my user as going back from SDK may want more concentration in this approach. As I want all VC once in memory before I set SplitVC as rootViewController. So kindly gave me any other approaches if possible
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’22