ios - How To Make Splash Screen Sizes For iPad Using Objective C? -
i trying create splash screen
iphone
, ipad
programmatically. here below have added code using , output screen ipad2
simulators showing half screen. need make full screen size ipad devices.
my code below:
// device ipad , ipad mini running ios 3.2 or later. cgsize result = [[uiscreen mainscreen] bounds].size; if(result.height == 1024) { // ipad, ipad 2, ipad mini splashimage.frame = cgrectmake(0, 0, 768,result.height); [splashimage setimage:[uiimage imagenamed: @"default-portrait.png" ]]; activityindicator.frame=cgrectmake(145, 240, 30, 30); } if(result.height == 2048) { // ipad air, ipad mini retina splashimage.frame = cgrectmake(0, 0, 1536,result.height); [splashimage setimage:[uiimage imagenamed: @"default-portrait.png" ]]; activityindicator.frame=cgrectmake(145, 240, 30, 30); }
ipad splash
ipadimage-appname-portrait.png * 768w x 1004h (with status bar) ipadimage-appname-portrait@2x.png * 1536w x 2008h (with status bar) ipadimage-appname-landscape.png ** 1024w x 748h (with status bar) ipadimage-appname-landscape@2x.png ** 2048w x 1496h (with status bar) ipadimage-appname-portrait.png * 768w x 1024h (without status bar) ipadimage-appname-portrait@2x.png * 1536w x 2048h (without status bar) ipadimage-appname-landscape.png ** 1024w x 768h (without status bar) ipadimage-appname-landscape@2x.png ** 2048w x 1536h (without status bar)
Comments
Post a Comment