John
John

Reputation: 764

How can access the uibutton ,when apply the UIPanGestureRecognizer to the same button

I am new in ios development.Now, i am developing a small application with GestureRecognizer. In my application has some uibuttons and this buttons respond to UIPanGestureRecognizer. Now i want to identify which button is dragging,when applying the UIPanGestureRecognizer.

if anybody know .please clear my question.

Upvotes: 0

Views: 161

Answers (1)

glogic
glogic

Reputation: 4092

maybe something like this would work for you

- (void)pan:(UIPanGestureRecognizer *)gesture
{
    UIButton *button = (UIButton *)gesture.view;
}

Upvotes: 1

Related Questions