当设置contentInset时,发现设置后没有效果,此时再设置一下contentOffset就可以了
_mainScrollView.contentInset = UIEdgeInsetsMake(ModelviewMaxHeight-ModelviewMinHeight, 0, 0, 0);
_mainScrollView.contentOffset = CGPointMake(0, ModelviewMinHeight-ModelviewMaxHeight);
当设置contentInset时,发现设置后没有效果,此时再设置一下contentOffset就可以了
_mainScrollView.contentInset = UIEdgeInsetsMake(ModelviewMaxHeight-ModelviewMinHeight, 0, 0, 0);
_mainScrollView.contentOffset = CGPointMake(0, ModelviewMinHeight-ModelviewMaxHeight);