문제

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.

도움이 되었습니까?

해결책

maybe something like this would work for you

- (void)pan:(UIPanGestureRecognizer *)gesture
{
    UIButton *button = (UIButton *)gesture.view;
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top