Jasper Blues Jasper Blues - 5 months ago 16
Objective-C Question

UITableView bounce bottom edge only

Is it possible to bounce a

UITableView
on the bottom side, but not the top? If so, please show me code.

Answer

Instead of changing the bounces property, I added that to the UIScrollViewDelgate method:

-(void)scrollViewDidScroll:(UIScrollView *)scrollView
{
    if (scrollView.contentOffset.y<=0) {
        scrollView.contentOffset = CGPointZero;
    }
}