有没有办法在UIScrollView中模拟scrollViewDidScrollToBottom?

Rom*_*lez 3 iphone objective-c uitableview uiscrollview

我想在a上进行无限滚动UITableViewController,我正在使用该scrollViewDidScroll:方法来检查contentOffset,但是我无法向下钻取一个偏移量,该偏移量将是ScrollView 的底部.

有什么建议?

提前致谢.

dra*_*ard 7

假设contentSize.height> bounds.size.height

if ( contentOffset.y >= contentSize.height - bounds.size.height ) { ... }
Run Code Online (Sandbox Code Playgroud)