Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个透明的 UIImageView,后面有一个按钮。我怎样才能“通过”它并按下它下面的按钮?
谢谢
采用UIImageView.userInteractionEnabled = NO;
UIImageView.userInteractionEnabled = NO;
这会阻止它接收触摸,并且所有触摸都会通过它。