For example: My heel controller is a navigation controller, and now there is a controller A that I pushed over. I hope that this controller can only pop by clicking the return button on the left side of the navigation bar, and slide right on the side. I hope to disable the pop gesture. Of course, I hope other controllers don’t still have this pop gesture. Please tell me how to implement this change?
Write in controller A:
If the construction from A -> B is more elegant
Inside B’s viewDidLoad
Then inside viewDidDisappear
It’s all written in B, isn’t it much more elegant