Default.png 320x480
Default@2x.png 640x960
Default-568h@2x.png 640x1136
iphone4屏幕:320*480
iphone5屏幕:320*568
打开iphone5模拟器:硬件-》设备-》iPhone(Retina 4-inch)
状态栏:20px
导航栏的背景图片必须是下列高度:
竖屏:44px(retina 屏则为 88px)
横屏:32px (retina 屏则为 64px)
BarButton(包括backButton)的背景图片用backgroundimage属性设置。
BarButton的背景图片必须是下列高度:
竖屏:30px(retina 屏则为 60px)
横屏:24px(retina 屏则为 48px)
nav bar icons: 20*20px
选项卡为48像素高,工具栏为44像素高
tabbar icons
30*30px
60*60px
320/5, 49, 640/5 98
toobar
20*20
40*40
---------------------------------------------------------------------------------------------------------------------------------------
IPHONE (UIView设置背景的方法分析)
self.view.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"Default.png"]];
quartzCore方式
UIImage *image = [UIImage imageNamed:@"name.png"];
view.layer.contents = (id) image.CGImage;
view.layer.backgroundColor = [UIColor clearColor].CGColor;