2014-02-18 89 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