- (void)viewWillAppear:(BOOL)animated { // View defaults to full size. If you want to customize the view's size, or its subviews (e.g. webView), // 解决状态栏重叠 if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) { CGRect viewBounds = [self.webView bounds]; viewBounds.origin.y = 20; viewBounds.size.height = viewBounds.size.height - 20; self.webView.frame = viewBounds; } [super viewWillAppear:animated]; } 这样也能够解决 |
学习了,谢谢分享、、、 |
我是来刷分的,嘿嘿顺便学习一下 |
Archiver|手机版|小黑屋| PhoneGap中文网 ( 京ICP备13027796号-1 )
GMT+8, 2025-1-9 02:30 , Processed in 0.066238 second(s), 34 queries .
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.