Jasper Blues Jasper Blues - 1 year ago 96
Objective-C Question

UITableView bounce bottom edge only

Is it possible to bounce a

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

Answer Source

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;