dekatotoro / dekatotoro/SlideMenuControllerSwift
View will appear not called
- Dominant language
- Swift
- Stars
- 3.4k
- Forks
- 742
- PR merge metrics
- No merged PRs in 30d
Description
An awesome menu library) thanks!
The view will appear method is not called on the main controller, the first time main controller appears.
The following discussion will be based on the code below:
//the existing storyboardControllerTemplate is just a convenience method for creating the controller from //a storyboard with using a storyboardIdentifier
let leftMenuController : LeftMenuController = LeftMenuController.existingStoryboardControllerTemplate()
//my leftMenuController holds a reference to all the controllers to which the slide menu will have to //change. As a result the "leftMenuController.headquarterControllerBranch is just another created //controller from storyboard
presentViewController( DrawerController(mainViewController: leftMenuController.headquarterControllerBranch, leftMenuViewController: leftMenuController), animated: false, completion: nil)
//it is to mention that the controller obtained from "leftMenuController.headquarterControllerBranch" is a //view controller embedded in a navigationController
The view will appear is never called on first appearance of the leftMenuViewController as it is the "main view controller" in the slide menu. It is called afterwords when I change from another view controller to the leftMenuViewController, but never on it's first appearance. The viewDidLoad and viewDidAppear get called, but not the viewWillAppear.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.