When my phonegap app starts splash screen goes down 20px..
To resolve this issue I have made below changes in CDVSplashScreen.m. line no 116.
Replace
_imageView.frame = CGRectMake(0, 0, _imageView.image.size.width, _imageView.image.size.height);
TO:
_imageView.frame = CGRectMake(0, -20, _imageView.image.size.width, _imageView.image.size.height);
I have made this changes for the iphone4 and 5 and i also test this in simulator.
This breaks on iPad. Do the following instead:
ReplyDeleteif ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad )
{
_imageView.frame = CGRectMake(0, 0, _imageView.image.size.width, _imageView.image.size.height);
}
else
{
_imageView.frame = CGRectMake(0, -20, _imageView.image.size.width, _imageView.image.size.height);
}
thanks Alex..
ReplyDelete