Any pointers or experiences good or bad with building a universal app, in particular one that uses OpenGL ES?
I am planning to
Add another nib file with ~ipad.
Check UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad to detirmin iPad or iPhone/iPod.
Set contentScaleFactor if it is available.
Anything else that needs taking care of?
I am planning to
Add another nib file with ~ipad.
Check UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad to detirmin iPad or iPhone/iPod.
Set contentScaleFactor if it is available.
Code:
if ([[UIScreen mainScreen] respondsToSelector:@selector(displayLinkWithTarget:selector:)] &&
([UIScreen mainScreen].scale == 2.0)) {
//NSLog(@"Retina display");
self.contentScaleFactor=2.0f;//iphone retina scale factor
} else {
//NSLog(@"Regular display");
}
Anything else that needs taking care of?
Last edited: