Pare um UITableView de rolar automaticamente
Eu tenho um UITableView com o qual estou rolando automaticamentesetContentOffset
. Igual a:
CGFloat point = self.table.tblMinutes.contentSize.height - self.table.tblMinutes.bounds.size.height;
[self.table.tblMinutes setContentOffset:CGPointMake(0, point) animated:false];
[self.table.tblMinutes layoutIfNeeded];
[UIView animateWithDuration:20.0 delay:0 options:UIViewAnimationOptionCurveLinear animations:^{
[self.table.tblMinutes setContentOffset:CGPointMake(0, point - 500) animated:false];
} completion:nil];
O que eu quero alcançar é que a rolagem diminua a velocidade e pare. Não fui capaz de conseguir isso.
Chamando[self.table.tblMinutes.layer removeAllAnimations]
interrompe a animação, mas move o contentOffset por algum motivo, sem alcançar o que eu quero.
Eu tentei usar oUIViewAnimationOptionBeginFromCurrentState
opção em uma animação, mas isso não fez nada.
Alguma sugestão?