开发者

iphone background scale issue

开发者 https://www.devze.com 2023-03-21 23:16 出处:网络
I have a background image being placed by the following: self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@\"v3_bg.png\"]];

I have a background image being placed by the following:

self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"v3_bg.png"]];

However, my image, which is 960x640 does not开发者_高级运维 scale correctly when i run the simulator, in both v3 and v4 of the iphone. Could some one please help explain to me why the iphone simulator 4 does'nt use the full size of the image, it seems to only just scale up what the v3 displays.

Thoughts?


In the Simulator, go to Hardware>Device and select iPhone(Retina) rather than iPhone.

0

精彩评论

暂无评论...
验证码 换一张
取 消