I have a view with IBActions tied to UITextFields and UIButtons. They all work as intended unless I use that view inside of a pageControl. If I do that the UITextField IBActions don’t work but the UIButton IBActions do work.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume that by “page control” you mean
UIScrollView+UIPagecontrol.In this case, the problem you are facing is the “greediness” of UIScrollView when it comes to touches. A UIScrollView will swallows all the touches (like a touch black hole) and will not let other controls receive them.
One way forward is (but I am not saying that it will be easy): subclassing
UIScrollViewand overriding:so that you can dispatch the touch to your controls after verifying that they belong to them.