xibでauto-layotを有効にしたら画面が最大化されなくなった
いまだにxibかよ、という話は置いておいて。
ios - How to make this xib file fill the entire screen of iPhone 6 plus - Stack Overflow
こちらで解決。
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[[self view] setFrame:[[UIScreen mainScreen] bounds]];
}
objective-c@2019/06/29 07:02
Tweet
| 0 comments | 0 trackbacks
| ↑