2014-02-18 90 views
0

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

enter image description here

+0

对于未覆盖整个屏幕的视图,它的自动识别掩码是什么?你在使用自动布局吗? –

+0

@DanielMartin:检查我编辑的代码。并在文件检查器我检查使用AutoLayout也..它不工作 – user2967559

回答

0

你需要使应用程序的通用,在Xcode去你的项目设置,在常规选项卡,并更改设备:iPhone环球

App type selector

+0

它只是通用的应用程序 – user2967559

+0

一些屏幕截图将很好 – jjv360

+0

请检查屏幕截图 – user2967559