简体   繁体   中英

UIButton layer Issue

I have created UIView on navigation bar which drop downs with animation and below navigation bar I have created another button. In UIView I have created three buttons in a row. Now when view opens, it comes on bottom. So whenever I click on UIView's button it get clicks on button which is on back of view. Can anyone suggest me the solution?

When the animated UIView drops down try disabling the UIButton that is behind it.

UIButton* button...
button.userInteraction = NO;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM