File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ - (instancetype)initWithFrame:(CGRect)frame
43
43
_scrollView.pagingEnabled = YES ;
44
44
_scrollView.showsHorizontalScrollIndicator = NO ;
45
45
_scrollView.showsVerticalScrollIndicator = NO ;
46
+ _scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
46
47
47
48
[self addSubview: _scrollView];
48
49
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ - (void)embed {
78
78
_scrollView.pagingEnabled = YES ;
79
79
_scrollView.showsHorizontalScrollIndicator = NO ;
80
80
_scrollView.showsVerticalScrollIndicator = NO ;
81
+ _scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
81
82
[self addSubview: _scrollView];
82
83
83
84
_containerView = [[UIView alloc ] initWithFrame: self .bounds];
You can’t perform that action at this time.
0 commit comments