iphone Programming Glossary: changedlevel
Making use of velocityInView with UIPanGestureRecognizer http://stackoverflow.com/questions/9093544/making-use-of-velocityinview-with-uipangesturerecognizer make it feel a bit more useful. I've tried a few things but cant quite figure out how to properly implement velocity changedLevel equation. void panDetected UIPanGestureRecognizer gesture CGPoint swipeLocation gesture locationInView self.tableView NSIndexPath.. Pan threshold is currently set to 8.0. 8.0 is a decent level for slow panning for fast panning 2.0 is more reasonable changedLevel ceilf xTranslation panThreshold originalLevel int changedLevel Raw velocity seems to go from around 3 slow to over 200 fast.. slow panning for fast panning 2.0 is more reasonable changedLevel ceilf xTranslation panThreshold originalLevel int changedLevel Raw velocity seems to go from around 3 slow to over 200 fast NSLog @ raw velocity f xVelocity if changedLevel 15 changedLevel..
|