7 years later and I ran into this problem.
Modifying the subviews' isUserInteractionEnabled
value did not work, and my ViewControllers were already set to full screen.
I made a sample project of a view controller that segues to another view controller (link to partial project below).
In ViewControllerB
, override UIResponder::touchesBegan()
, UIResponder::touchesMoved()
, and UIResponder::touchesEnded()
. If you don't, the responder will not look at ViewControllerB as an acceptable ViewController, go up the hierarchy to ViewControllerA and call those overriden methods. Note: At minimum, you only need to override touchesBegan
, but there's no reason not to implement all three methods.
Project gist link: https://gist.github.com/krishkalai07/87cfa63c13306da5eb6289349872e4fe
ViewControllerB::touchesBegan()
, ViewControllerB::touchesMoved()
, and ViewControllerB::touchesEnded()