【发布时间】:2013-01-17 19:19:29
【问题描述】:
我试图弄清楚当状态栏被触摸时如何滚动到 UIScrollView 的底部。我熟悉 UIScrollView 中的 @property(nonatomic) BOOL scrollsToTop 方法,但这不是我要找的。
我这里也有这个方法,当视图加载时自动滚动到底部。有什么想法吗?
-(void)scrollToBottom{
CGPoint bottomOffset = CGPointMake(0, scroller.contentSize.height - scroller.bounds.size.height);
[scroller setContentOffset:bottomOffset animated:YES];
}
【问题讨论】:
标签: ios objective-c user-interface uiscrollview