If you directly add the view in the viewController to the view controlled by another controller using the addSubView method, in this case, because the view has left the control scope of the original controller, the callbacks related to the display and hiding of the view will not be available. It worked. It needs to be handled manually under the current controller, such as manually calling the viewDidDisappear method of the controller corresponding to that view when sliding the scrollView to a certain range, etc.
If you directly add the view in the viewController to the view controlled by another controller using the addSubView method, in this case, because the view has left the control scope of the original controller, the callbacks related to the display and hiding of the view will not be available. It worked. It needs to be handled manually under the current controller, such as manually calling the viewDidDisappear method of the controller corresponding to that view when sliding the scrollView to a certain range, etc.
It is recommended to use childViewController.
Are you sure you don’t want to leave?
Is this method done after the sliding is finished?
Sliding the screen does not remove the controller and the views it controls. Of course it does not ViewDidDisapper