简体   繁体   English

UIButton和UISlider发生水龙头冲突

[英]UIButton and UISlider in tap conflict

I have a strange problem. 我有一个奇怪的问题。 The designers provided me with a design (no change possible) that puts a button quite near a slider. 设计师为我提供了一种设计(无法进行更改),该设计将按钮放置在滑块附近。 For the sake of explanation, let's talk about left side. 为了说明起见,让我们谈谈左侧。 The button only registers the tap from approx. 该按钮仅记录从大约开始的点击。 two thirds of its width from the left. 其宽度的三分之二(从左侧开始)。 If I tap further to the right, the tap is registered in the slider.` Even if I change the Z order of those controls in IB, it still happens. 如果我进一步向右轻击,则该轻击会记录在滑块中。

Why and what would be the solution to make the whole area of the button register the tap for itself? 为什么并使按钮的整个区域自己注册水龙头的解决方案是什么?

You should respect the Apple HCI guidelines, they are there for a reason. 您应该遵守Apple HCI准则,因为这些准则是有原因的。 Have a word with the designers ;-j 与设计师谈一谈; -j

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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