I have a fairly simple scroll setting, and I want to get rid of the content.
Myviewcontroller.h
@interface MyViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
@end
MyViewController.m
@interface MyViewController
-(void)viewDidLoad
{
[super viewDidLoad];
[self.scrollView setContentInset:UIEdgeInsetsZero];
...
}
In my storyboard, my scrollview starts at the bottom of the navigation bar. Unfortunately, I get the following result when starting the application. It appears that ContentInset is still very lively. I made a green scrollView background.

EDIT: by simply providing a storyboard drawing and an output link

source
share