我將iPhone xib轉換爲ipad xib。我提到這個鏈接Converting iPhone xib to iPad xib?。但是在部署到ipadm後,視圖尺寸太小。它顯示屏幕的中心。它不會顯示768x1024屏幕大小。Xib iPad的窗口尺寸小
代碼:
NSString *aboutFilePath = [[NSBundle mainBundle] pathForResource:@"index"
ofType:@"html"];
NSLog(@"%@",aboutFilePath);
NSString* htmlString = [NSString stringWithContentsOfFile:aboutFilePath
encoding:NSUTF8StringEncoding
error:nil];
NSString *aPath = [[NSBundle mainBundle] bundlePath];
NSURL *anURL = [NSURL fileURLWithPath:aPath];
[webView loadHTMLString:htmlString baseURL:anURL];
對於未覆蓋整個屏幕的視圖,它的自動識別掩碼是什麼?你在使用自動佈局嗎? –
@DanielMartin:檢查我編輯的代碼。並在文件檢查器我檢查使用AutoLayout也..它不工作 – user2967559