coure2011
coure2011

Reputation: 42414

UIView drag event

I have an slide show application. There is a UIView on main screen, I want when someone slide his fingers horizontally it moves to next screen.

What this event is called? (slide fingers horizontally/vertically)
How can i detect this event? Want to call a method xyz on this event

Upvotes: 0

Views: 1207

Answers (1)

taskinoor
taskinoor

Reputation: 46027

You might be looking for a Page Control.

If not, then you can use touchesMoved:withEvent: to detect the drag event. In this event handler you need to compare the coordinates to detect whether it is moving horizontally or vertically.

Upvotes: 1

Related Questions