如果 设置
self.contentInset = UIEdgeInsetsMake(200, 0, 0, 0);
在滑动时打印
NSLog(@"%lf", self.contentOffset.y);
结果:contentInset不会影响offset,刚开始offset仍是0,上面200像素是不会看到的,只有滑向上时才会展示上面的200像素。self.contentInset = UIEdgeInsetsMake(200, 0, 0, 0);
在滑动时打印
NSLog(@"%lf", self.contentOffset.y);
结果:contentInset不会影响offset,刚开始offset仍是0,上面200像素是不会看到的,只有滑向上时才会展示上面的200像素。