Link to home
Start Free TrialLog in
Avatar of agicfuture
agicfuture

asked on

Port iPhone UIView to iPad verison

SDK: xCode 3.2
Device: iPad

Problem:
      As the width/height of iPhone is smaller than iPad. When we create new UIVIewController class, we can select iPad version, so that the width/height is correct.

      However, how to update the existing iPhone UIViewController class to have ipad width/height?

      Should i modify the xib file directly to change the width/height?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of agicfuture
agicfuture

ASKER

Hi pgnatyuk,

So that  "CGRect frame = CGRectMake(0, 0, 320, 480);" is one of the key point.  I will try it out.

Thanks.

Btw, would you please also help on this question? Many thanks.

https://www.experts-exchange.com/questions/25828769/Implement-Auto-Rotate-in-Auto-Scroll-sample-source-by-xCode-and-Objective-C.html
CGRect frame = CGRectMake(0, 0, 320, 480);

Maybe you need to think about
CGRect appRect = [[UIScreen mainScreen] applicationFrame];
https://www.experts-exchange.com/questions/25828769/Implement-Auto-Rotate-in-Auto-Scroll-sample-source-by-xCode-and-Objective-C.html

Sorry, I do not have time today to download and compile these samples. So it will be easier, if you can show in that thread some details, what's going on in the program, etc.
Good