viewDidAppear presence in code messes with layout

后端 未结 1 412
耶瑟儿~
耶瑟儿~ 2021-01-28 13:44

I have encountered some seriously odd situation.

I have a code looking like this:

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBu         


        
相关标签:
1条回答
  • 2021-01-28 14:36

    Your view will change size after viewDidLoad with regard to the status bar and navigation bar (if you have them). If you don't call [super viewDidAppear:animated];, your subviews may not be repositioned properly.

    0 讨论(0)
提交回复
热议问题