标签:
[UIView animateWithDuration:0 animations:NULL completion:^(BOOL finished) { [UIView animateWithDuration:0.25 animations:^{ scrollView.contentOffset = CGPointMake(0.0f, 0.0f); scrollView.contentInset = UIEdgeInsetsMake(0.0f, 0.0f, 0.0f, 0.0f); } completion:NULL]; }];
关键在于:套两层animation!
keyword: UIScrollView contentInset contentOffset
一种避免在scrollViewDidEndDragging中改变contentInset时闪动的解决方案
标签:
原文地址:http://www.cnblogs.com/ashamp/p/4700295.html