ios - Slow animation of table view deceleration -


trying set targetcontentoffset in scrollview delegate method snap tableview desired position(top,middle,bottom),but after snap action tableview decelerate position not finishing animation fast gets slow down after few seconds.i tried change speed putting lower number (0.97,0.96…..) still same,i have tried putting same content in uiview animation block there no change in speed? how can speed deceleration rate more uiscrollviewdecelerationratefast?

tableview.decelerationrate = uiscrollviewdecelerationratefast var scrollrect:cgrect = scrollview.frame;  func scrollviewwillenddragging(scrollview: uiscrollview, withvelocity velocity: cgpoint, targetcontentoffset: unsafemutablepointer<cgpoint>) {      scrollrect.origin.y = self.getnextposition(position, previousposition: self.previousposition, fastscroll: isfastscroll! , andscrolldirection: self.scrolldirection!,isframechanged:framechanged)      targetcontentoffset.memory.y = scrollrect.origin.y } 


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -