Skip to content

Commit

Permalink
Merge pull request #3023 from srahim/timob-11045
Browse files Browse the repository at this point in the history
[TIMOB-11045]Splash screen fix for iPhone 5
  • Loading branch information
vishalduggal committed Sep 22, 2012
2 parents a5e9602 + 3e0af2d commit 4dd69ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion iphone/Classes/TiRootViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,14 @@ - (UIImage*)defaultImageForOrientation:(UIDeviceOrientation) orientation resulti
}
*imageOrientation = UIDeviceOrientationPortrait;
*imageIdiom = UIUserInterfaceIdiomPhone;
// Default
// Default
image = nil;
if ([[UIScreen mainScreen] bounds].size.height == 568) {
image = [UIImage imageNamed:@"Default-568h@2x.png"];
if (image!=nil) {
return image;
}
}
return [UIImage imageNamed:@"Default.png"];
}

Expand Down

0 comments on commit 4dd69ce

Please sign in to comment.