Open LCBbest opened 3 years ago
I see that in file CAPSPageMenu+UIConfiguration.swift line 165 -> 170
if index == 0.0 {
// Add first two controllers to scrollview and as child view controller
controller.viewWillAppear(true)
addPageAtIndex(0)
controller.viewDidAppear(true)
}
controller call viewWillAppear(true) and viewDidAppear(true). They also will be called when controller loaded. so that is reason why method viewDidAppear is executed twice. I don't know why we need to call two function in file CAPSPageMenu+UIConfiguration.swift .
if add this code self.addChild(pageMenuController!)。Method 'viewDidAppear' in the childviewcontroller is executed twice。How to solve it
code
childcontroller