如何检测UIActionSheet何时滚动到底部?

时间:2013-09-17 10:07:30

标签: iphone ios objective-c uiactionsheet

我正在使用以下方法来检测我的表格视图何时滚动到底部以向表格视图添加更多表格单元格。我如何对UIActionSheet做同样的事情?我的动作表填充了{40}行的NSArray,我希望能够滚动到底部然后添加另外40个列表...

- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {

NSLog(@"scrollViewDidEndDecelerating");

float endScrolling = scrollView.contentOffset.y + scrollView.frame.size.height;
if (endScrolling >= scrollView.contentSize.height)
{
    index ++;
    [self getFeed:index];
}

}

enter image description here

1 个答案:

答案 0 :(得分:2)

也许更好用UIPickerView?