triveni
triveni

Reputation: 377

splash-screen not working on ipad device

in my apps splash-screen not run on device.but on simulator its work i give name default.png.then only on simulator it works . also application didFinishLaunchingWithOptions:method i add ing on window ,then work only for simulator. i adjust size by 768*1024.for device .but still not working..anybody has idea abt this let me know thanks

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:
(NSDictionary *)launchOptions 
{   UIImageView *img=[[UIImageView alloc] initWithFrame:CGRectMake(0,0,768,1024)];      
    img.image=[UIImage imageNamed:@"splash_CARD.png"];
    [self.view addSubview:img]; 
    [self DownLoadProfileInfo]; 
        [self.window makeKeyAndVisible];
    return YES;
}

Upvotes: 0

Views: 658

Answers (3)

ganesh
ganesh

Reputation: 131

Simulator accepts this file name with any case, it could be anything like Default.png, default.png, Default.PNG and DEFAULT.png.

But in device it should be in only one form i.e., Default.png with the 'D' caps.

Upvotes: 1

Muhammed Ayaz
Muhammed Ayaz

Reputation: 111

Add File to Resources Folder and Chang it's name as "default.png".. You r trying an imageView as a splash screen..

Upvotes: 1

Praveen S
Praveen S

Reputation: 10395

If you are using Xcode 4.0 or above you need not name them as default. You can just drag and drop them in xcode app settings itself.

Upvotes: 0

Related Questions