iOS button click No response

Source: Internet
Author: User

Today the project encountered a UIButton can not click, get a half day, summed up the following several conclusions

1, if a uibutton frame beyond the parent view of the Frame,uibutton can still be visible, but cannot respond to the Click event , when the development, encountered UIButton Click did not respond to the problem, We need to output the frame of btn and its parent view to see if Btn.frame is out of view

2. See if there is a transparent view overlay above the BTN

3, did some animation operation, frame did not change, but the view changed

4, the user interaction property of the general button is definitely open by default, but if the Father view's properties are closed, then the button will not respond, such as to add the button to Uiimageview, it is better to uiimageview interactive properties open.

Currently looking for so many, follow-up there are other conditions in the supplement ... (PS today is btn beyond the size of the parent control) ╮(╯▽╰)╭

iOS button click No response

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.