ios 适配开启个人热点视图偏移
程序员文章站
2022-05-07 15:09:32
/// 在BaseViewController中设置即可
- (void)viewWillLayoutSubviews {
CGRect statusBarRect...
/// 在BaseViewController中设置即可
- (void)viewWillLayoutSubviews { CGRect statusBarRect = [[UIApplication sharedApplication] statusBarFrame]; if (statusBarRect.size.height == 40) { self.view.frame = CGRectMake(0, -20, KScreenWidth, KScreenHeight); } }