dekatotoro / dekatotoro/SlideMenuControllerSwift
How to use two navigation controller in one app
- Dominant language
- Swift
- Stars
- 3.4k
- Forks
- 742
- PR merge metrics
- No merged PRs in 30d
Description
i am new to ios.. i am making the app which load first login page and after login its display home view controller. and in my home view controller i am using this slidebar.. so how can i manage rootcontroller of navigation?? here is my code
IQKeyboardManager.sharedManager().enable = true
IQKeyboardManager.sharedManager().shouldShowTextFieldPlaceholder = false
window = UIWindow(frame: UIScreen.mainScreen().bounds)
storyboard = UIStoryboard(name: "Main", bundle: nil)
let controller:ViewController = self.storyboard.instantiateViewControllerWithIdentifier("ViewController") as! ViewController
navigation = UINavigationController(rootViewController: controller)
window?.rootViewController = navigation
```
window?.makeKeyAndVisible()
```
and for slidebar
```
let mainViewController = storyboard.instantiateViewControllerWithIdentifier("SelectbusViewController") as! SelectbusViewController
let leftViewController = storyboard.instantiateViewControllerWithIdentifier("LeftViewController") as! LeftViewController
let slideMenuController = SlideMenuController(mainViewController: mainViewController, leftMenuViewController: leftViewController)
let appdelegate = UIApplication.sharedApplication().delegate as! AppDelegate
let slidernavigation = UINavigationController(rootViewController: slideMenuController)
appdelegate.window?.rootViewController = slidernavigation
appdelegate.window?.makeKeyAndVisible()
```
so how can i manage both of this???
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the AppDelegate setup and the two root-controller snippets, including ViewController, SelectbusViewController, LeftViewController, SlideMenuController, and the two UINavigationController instances. Determine how the login-to-home transition and slide menu are intended to coexist; done should be a clear documented navigation setup that answers how both controllers are managed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100