I have a view that changes if users scrolls it.
I need something to read user’s scroll data (direction, force etc.) like UITableView does it.
if user touches screen and moves finger to the upwards view need to recieve scroll datas to call redraw method.
How can I receive scroll data?
I have a view that changes if users scrolls it. I need something to
Share
Yes you can get both.
To get the direction of scroll you need to implement
- (void)scrollViewDidScroll:(UIScrollView *)scrollViewdelegate.Now to get the force or power of scrolling. you actually need to set something called
decelerateRatefor your scrollView (or tableView). Refer here.