SideMenu icon indicating copy to clipboard operation
SideMenu copied to clipboard

Open particular page in App delgate

Open shaikhmoin opened this issue 5 years ago • 1 comments

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 avatar Mar 16 '20 07:03 shaikhmoin

@shaikhmoin Your code seems correct.

kukushi avatar May 25 '20 16:05 kukushi