Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 目标C-变形按钮和长按手势识别器_Objective C_Uibutton_Uigesturerecognizer - Fatal编程技术网

Objective c 目标C-变形按钮和长按手势识别器

Objective c 目标C-变形按钮和长按手势识别器,objective-c,uibutton,uigesturerecognizer,Objective C,Uibutton,Uigesturerecognizer,我的视图中有一些特殊的按钮(使用子类型OBShapedButton实现,该按钮可以有一个透明的图像,并且只能在图像大小上单击)。现在我有了触摸屏幕并四处走动的想法。每次当我按下按钮时,我都想做点什么。我该怎么做?我尝试使用LongPress手势识别器,但我不知道如何在手指移动过程中获取我触摸到的对象 有什么想法吗?去查看中的UIControlEventTouchDragEnter

我的视图中有一些特殊的按钮(使用子类型OBShapedButton实现,该按钮可以有一个透明的图像,并且只能在图像大小上单击)。现在我有了触摸屏幕并四处走动的想法。每次当我按下按钮时,我都想做点什么。我该怎么做?我尝试使用LongPress手势识别器,但我不知道如何在手指移动过程中获取我触摸到的对象


有什么想法吗?

去查看中的
UIControlEventTouchDragEnter