繁体   English   中英

UIButton TouchUpInside不起作用

[英]UIButton TouchUpInside Not working

UIButton TouchUpInSide不起作用,但是在长按对应于TouchUpinside的选择器上被调用,并且TouchDown正常工作。 我在谷歌上搜索了很多东西,但是没有运气。 希望这个怪异的问题得到解决。 谢谢。

使用TouchUpInside也许TouchUpOutside代替TouchInUpSide 您在哪里找到了该动作?

ViewUp的超类的手势识别器将覆盖TouchUpInside Action。 谢谢大家的帮助。

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIControl_Class/Reference/Reference.html

我没有看到UIControlEvent TouchInUpSide。

使用该列表之一:

UIControlEventTouchDown
UIControlEventTouchDownRepeat
UIControlEventTouchDragInside
UIControlEventTouchDragOutside
UIControlEventTouchDragEnter
UIControlEventTouchDragExit
UIControlEventTouchUpInside
UIControlEventTouchUpOutside
UIControlEventTouchCancel

您必须发布代码并可能解释视图层次结构,以便我们可以了解您的代码以及谁是第一响应者。 为了安全起见,请尝试其他事件,看看会发生什么,这可能是拼写错误。

暂无
暂无

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

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