I am using the following code to set a background in my iphone app.
[[self view] setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"background_final.png"]]];
The problem is that if I try the app in iPhone 5.. retina 4″ the background image gets tiled instead of having black spaces where there should not be any images.
I have a Default-568h@2x.png in the app, and it has the correct dimensions but still I am not getting the right image background.
Any Ideas on how to fix this?
delete the
Default-568h@2x.pngand you will get the expected results