ios - UIScrollView clipped during animation -
i want move contentoffset of uiscrollview. i'm using different methods, cabasicanimation or uiview animatewithduration problem that, during animation, uiscrollview clipped right , left sides.
when animation finished, size of uiscrollview seems right.
- (void)animatescrolltothebottom { self.scroll.scrollenabled = no; cgfloat scrollheight = self.scroll.contentsize.width; [uiview animatewithduration:10 delay:0 options:uiviewanimationcurveeaseinout | uiviewanimationoptionbeginfromcurrentstate animations:^{ self.scroll.contentoffset = cgpointmake(0, scrollheight); } completion:^(bool finished) { self.scroll.scrollenabled = yes; }]; }
any suggestions? thanks!
[uiview animatewithduration:5.0f animations:^ { [scrollview setcontentoffset:destination animated:no]; }];
worked me