0
我正在使用webview在iOS7中遇到問題。它顯示我的webview和tabbar之間的空白。 以下是我的Sceen鏡頭和代碼。請幫助我。Tabbar和webview之間的空白 - iOS7
- (void)viewDidLoad {
[super viewDidLoad];
CGRect rectFrame = [UIScreen mainScreen].applicationFrame;
self.view.frame = rectFrame;
self.view.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
// demoWebview is my Webview
demoWebView.autoresizesSubviews = YES;
demoWebView.scalesPageToFit = YES;
demoWebView.backgroundColor = [UIColor whiteColor];
UIBarButtonItem *backButton = [[UIBarButtonItem alloc]initWithTitle:@"Back" style:UIBarButtonItemStyleBordered target:self action:@selector(onBack:)];
self.navigationItem.leftBarButtonItem = backButton;
[backButton release];
}
你必須在瀏覽器中執行您的網址第一可預設的空白空間已經有.. –
@Dipen:我不是裝任何外部網址在這裏,iused在這裏嵌入代碼YouTube視頻 –
刪除此並檢查demoWebView.scalesPageToFit = YES;如果它不起作用,請顯示您爲在Web視圖中加載YouTube視頻而編寫的代碼 –