iOS add-on view button is unresponsive

Source: Internet
Author: User

Above this picture black is a view, yellow is 2 button, although we can now see the 2 button, but we click it is unresponsive

Reason 1: These 2 buttons are no longer within the frame of the view, that is, beyond the bounds, (of course, if there is a cross, a little bit, we point that a little bit can be left button click event)

Cause 2:butotn in the view, there may be imageview or Uilabel, because the default interaction of the 2 controls is closed, you put the button on this attempt, then the child view all the interaction will be closed.

Workaround: Open the ImageView or Uilabel interaction, the code is as follows

xxx.userinteractionenabled = YES;


If there is any reason to wish you to comment on the supplementary,!!!


iOS add-on view button is unresponsive

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.