0

I converted iPhone xib to ipad xib. I referred this link Converting iPhone xib to iPad xib?. But after deploy to ipadm, the view size is too small. It displaying center of the screen. It won't display 768x1024 screensize.

code:

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

Community
  • 1
  • 1
user2967559
  • 97
  • 2
  • 13

1 Answers1

0

You need to make the app Universal, in Xcode go to your project settings, under the General tab, and change Devices: iPhone to Universal

App type selector

jjv360
  • 4,120
  • 3
  • 23
  • 37