我试图弄清楚当状态栏被触摸时如何滚动到 UIScrollView 的底部。我熟悉 UIScrollView 中的 @property(nonatomic) BOOL scrollsToTop 方法,但这不是我要找的。
我这里也有这个方法,当视图加载时会自动滚动到底部。有什么想法吗?
-(void)scrollToBottom{
CGPoint bottomOffset = CGPointMake(0, scroller.contentSize.height - scroller.bounds.size.height);
[scroller setContentOffset:bottomOffset animated:YES];
}