When using UIScrollView you should notice these
UIScrollView is often used by developers, so it’s good for us to know some tips about UIScrollView.
- In your
ViewController
, you should add this code below, because it can solve some weird problems.1
self.automaticallyAdjustsScrollViewInsets = NO;
- Using these codes can help you say goodbye to weird changes when changing ViewController by pushing the tabbar.
1 | - (void)viewWillAppear:(BOOL)animated { |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment