我将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