开发者

Background image is not fitting properly iPhone

开发者 https://www.devze.com 2023-04-02 13:04 出处:网络
In my application i am using background image programmatically like below self.view.backgroundColor =[UIColor clearColor];

In my application i am using background image programmatically like below

self.view.backgroundColor =[UIColor clearColor];

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

I have tried both image sizes 320x480 pixels and 640x960 pixels with name of @2x. but both images are not fitting properly into iphone simulator.

Do开发者_JS百科 i need to reduce navigation bar area from 320x480? then it will fit?

I was wondering why?


320 x 480 and 640 x 960 are fullscreen resolutions. if you have a status bar visible remove 20 pixels etc.

Carrier Status bar = 20 high UINavigationBar = 44 high UITabBar = 49 high UISearchBar = 44 high UIToolBar = 44 high

0

精彩评论

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