0

I'm using a 640x1136 image as background for my app but the image appears zoomed in. The same image, as splash screen, is displayed correctly. I followed the directions found here. Two pics,

the original image:

640x1136 image

Screen capture, simulator iPhone 6.1, and the look is the same on my iPhone 5

screen capture

The code I am using is the following:

CGRect screenSize = [[UIScreen mainScreen]bounds];
if (screenSize.size.height == 568.0f) {
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Default-568h@2x"]];
}else {
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Default@2x"]];
}
Community
  • 1
  • 1
Luis
  • 447
  • 1
  • 7
  • 24

2 Answers2

0

You have tabbar at bottom of application. So, you need to use different image for Splash screen and background screen for Inicio tab.

iPhone developer.
  • 2,122
  • 1
  • 16
  • 17
0

You are using ratina images(Having suffix as @2x) and checking in NonRetina simulator. So select Retina based simulator using iphone simulator property as

Hardware -> Device -> iPhone(Retina 4-inch)

and then run app.

Hope it helps you.

Nishant Tyagi
  • 9,893
  • 3
  • 40
  • 61
  • @user2339310: Well, I have cut 49 pixels from the image with the same results. Nishant Tyagi:I'm running the app on an iPhone 5, the zoom in effect is both on the simulator and on the iPhone. – Luis May 28 '13 at 21:20