without seeing any code of your custom class it's kinda.. guesswork.. there could be many reasons.
BUT
in a way it comes down to 'your window class (or a view or recognizer it adds) consuming the events before they can reach the rootViewController view.
identify places you deal with touches (events in general) and comment them out to see what's causing the issue