touchesMoved being called in wrong UIViewController

109 views Asked by At

In my UIViewController (VC1) I have a button that brings a second viewController (VC2) onto the screen via segue modal.

In VC1.m I have touchesMoved code

if I think bring VC2 onto the screen and start swiping the touchesMoved code in VC1.m starts getting called???

How can I make it so that the touchesMoved code only gets called when VC1 is the highest "z-index?" most visible viewController? The one on top?

Anyone know a simple if statement?

Thanks :)

0

There are 0 answers