I created an application compatible with iPhone and iPad. Since it is based on HTML (PhoneGap), the application itself is the same for both devices (HTML scales are good!). But the launch image on the screen does not fill on the iPad at startup.
My Resorces folder has only an iPhone launcher image that should be small for the iPad, how can I add another for the iPad?
You need to specify the property of the startup image file ( UILaunchImageFile) in your info.plist application:
UILaunchImageFile
, UILaunchImageFile~ipad iPad, iPad-Portrait.png iPad-Landscape.png. iPhone (Default.png) iPhone.
UILaunchImageFile~ipad
iPad
iPad-Portrait.png
iPad-Landscape.png
Default.png
.
, , phonegap 1.9, , :
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { UIImage* image = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default-Portrait" ofType:@"png"]]; imageView = [[UIImageView alloc] initWithImage:image]; [image release]; imageView.tag = 1; [window addSubview:imageView]; [imageView release]; }
"applicationDidFinishLaunching" [super applicationDidFinishLaunching: application].
, , , . Build/Run PhoneGap "" xcode. , . , , ipad iphone.
. , . . , < iOS 3.2, Info.plist ., .
, Apple Info.plist/splash screen. :
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BuildTimeConfiguration/BuildTimeConfiguration.html#//apple_ref/doc/uid/TP40007072-CH7-SW18
: " " Info.plist. :
Default.png → () iPad
Default-Landscape.png → ( ) iPad
Default-Landscape.png
Default-Portrait.png → ( ) iPad
Default-Portrait.png
Default~iphone.png → () iPhone
Default~iphone.png
:
Default@2x~iphone.png → - > () iPhone
Default@2x~iphone.png
"Default.png" - . , , , , IPAD, C, . , IPAD ( , default.png iphone, ... , , !)
UILaunchImageFile .plist http://developer.apple.com/library/ios/#documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html.
This works, but you must remember to drag and drop your ipad image into Xcode. This will not work, just adding the file to the file browser, you should use Xcode!
Source: https://habr.com/ru/post/1744565/More articles:Linq to SQL - How to check record does not exist before insert - linq-to-sqlWhat is a private API in an iPhone app? - iosHow to apply or link several suitable templates in XSLT? - xmlTSQL - TOP X in FROM subquery? - sql-serverOutput SQL query result to PHP array - oopHow to change an element: characters in matlab? - matlabIs synthesis of algebraic sound possible? - audioПроблемы с подключением сервера SQL Server/freetds от Django-pyodbc в Linux - djangoDoes accessing a database query block the ability to edit a table? - sqlSecure web service? - phpAll Articles