0

我是 ios 开发的新手。现在,我正在使用 GestureRecognizer 开发一个小型应用程序。在我的应用程序中有一些 uibuttons,这些按钮响应 UIPanGestureRecognizer。现在我想在应用 UIPanGestureRecognizer 时确定正在拖动哪个按钮。

如果有人知道。请清除我的问题。

4

1 回答 1

1

也许这样的事情对你有用

- (void)pan:(UIPanGestureRecognizer *)gesture
{
    UIButton *button = (UIButton *)gesture.view;
}
于 2012-01-19T12:15:22.227 回答