I need to enable my screen to respond to a user's touch, but only after they are prompted by a message that appears via an MBProgressHUD. I realize that I need to implement the
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
method, but as I said, I need to do this only when the user has been prompted with a message, and not before. Can this be done, and if so, how?
Just use a Boolean flag called userHasRespondedToMessage. Set it to NO until the user has responded to the message. Then, in your touches method, if the boolean is no, just return instead of handling the touch. Or any other way you want to enable or disable tocuhes.