简体   繁体   English

按钮突然响应外部修饰,而不是内部修饰

[英]Button suddenly responds to touch up outside, not touch up inside

My iPhone application has just suddenly changed behavior and I have no idea why. 我的iPhone应用程序突然改变了行为,我不知道为什么。 I have a small button and it is now only firing on touch up outside and not touch up inside. 我有一个小按钮,现在它仅触发外部的修饰,而不触发内部的修饰。 I'm not aware of anything I changed that may have caused this. 我不知道我更改过的任何内容可能会导致这种情况。

As you can see from the image below, it is correctly wired for touch up inside to the onAdd selector. 从下图可以看到,它已正确接线,可以在onAdd选择器内部进行修饰。

在此处输入图片说明

Any ideas on what could cause this behavior? 关于什么可能导致此行为的任何想法?

Check GestureRecognizers, other IBActions in this view. 在此视图中检查GestureRecognizers和其他IBAction。 Try to link up event with touchUpOutside and check is it working ok, then revert to Inside and check behaviour. 尝试将事件与touchUpOutside关联起来,并检查其是否正常运行,然后恢复为Inside并检查行为。 Use NSLog in methods to see what's firing on tap. 使用NSLog in方法查看点击时触发的内容。 Without sample code I can't say much more. 没有示例代码,我无法说更多。

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

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