Search code examples
ipadsizescreenretina-display

iPad 3 come now. I should re-write my code for new screen size or iOS scale it automatically?


Now I use Xcode 4.2 and iOS 5.0. And developing for iPad 1st generation. In my application I use hardcoded sizes - 1024x768. I'm worry how my app will be look in new retina screen!?. Each time for the view.frame I use - CGRectMake(x, y, width, height);

I know I should use 2x images. But my question is different. How about my hardcoded x/y position for some UIViews?


Solution

  • You don't have to change the coordinates and sizes in your code. Just add the @2x images. The same things that apply for the retina display of the iPhone apply to the new iPad.