Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open particular page in App delgate #109

Open
shaikhmoin opened this issue Mar 16, 2020 · 1 comment
Open

Open particular page in App delgate #109

shaikhmoin opened this issue Mar 16, 2020 · 1 comment

Comments

@shaikhmoin
Copy link

shaikhmoin commented Mar 16, 2020

I want to set default page into App delegate method,I write code but its not properly working.My code like below,

  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

       let contentViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "ContentNavigation");
       let contentReportController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "ContentNavigationCurrency");
       let menuViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "SideBar")

   if isMultyCurrency == "1" {
     
         window = UIWindow(frame: UIScreen.main.bounds)
         window?.rootViewController = SideMenuController(contentViewController:contentViewController,menuViewController:menuViewController)
         window?.makeKeyAndVisible()

   } else {
         window = UIWindow(frame: UIScreen.main.bounds)
         window?.rootViewController = SideMenuController(contentViewController:contentReportController,menuViewController:menuViewController)
         window?.makeKeyAndVisible()
        }
   return true
  }
@shaikhmoin shaikhmoin changed the title Set particular page in App delgate Open particular page in App delgate Mar 16, 2020
@kukushi
Copy link
Owner

kukushi commented May 25, 2020

@shaikhmoin Your code seems correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants