IOS app development with phone-gap.
When the app is installed/launched for the first time, PhoneGap logo(with text- 'iphone retina') appears which needs to be removed. I am not able to figure-out whether it is an image or css, where it resides and how it can be removed.
Any suggestions will be appreciated.
Thanks in advance.
You need to delete the current Default.png file and put your own Default.png file (320x480 for noraml). For ratina image keep Default#2x.png (640x960) file.
Related
I believe I am making a silly mistake. But I cannot figure it out.
I have an image named Default.png that I have added to my project. Now when I go to General and then Launch Images I drag and drop this Default.png to the 2x window for my app. When I go to build the project and try it, I get this error:
"The launch image set named "LaunchImage" did not have any applicable content."
What's the problem here? I've also seen that simply dragging and dropping the Default.png should do it, but I think that's for older versions.
Any ideas?
Thanks
Search for LaunchImage keyword in your .plist file and delete it. Then, try assigning the image again by dragging as you already did before...
This case raised in Xcode 5.0 + iOS 7.
Apple use Images.xcassets to group App Icons, App Launch (Default) Images in Xcode 5.0 + iOS 7.
For solving the problem of Asset Catalog Compiler Error
The launch image set named "LaunchImage" did not have any applicable content.
Approach:
Putting suitable size of images into LaunchImage.
For example:
Should be 640x960 dimensioning in iPhone Portrait iOS7 2x.
Should be 640x1136 dimensioning in iPhone Portrait iOS 7 R2.
Reference from iOS App Programming Guide:
Create and Set iOS Launch Images
Launch images are displayed while your app is launching on iOS. A launch image matching the device resolution appears as soon as the user taps your app icon.
App Launch (Default) Images
Specify the launch images for your app in your Xcode project settings. In Xcode 5.0, specify these images on the General tab of your project settings; in older versions of Xcode, this tab may have a different name. Xcode places your launch image files at the top-level of the app bundle and configures other project settings as appropriate. Specifically, Xcode adds the UILaunchImages key to your app’s Info.plist file automatically if your app runs on iOS 7 or later. That key tells the system the name of your app’s launch image files. For earlier versions of iOS, the system uses the launch image filenames to decide which image to load.
The same error has been resolved by adding the exact sizes of launch images for different iOS devices.
I tried everything here, deleted the .app and rebuilt each time, and nothing worked. I finally got fed up and switched back to the old style of launcher image specification (Project Settings Window -> General -> Launch Images -> Source -> Don't use asset catalogs.) That worked!
I had this problem as well. Make sure of a couple of things:
Aspect Ratio is what Apple expects, in other words square
The sizes are correct, 60pt (for example) should be 60x60
60pt #2x should be 120x120
After I fixed the sizes the app compiled without errors but I think the most important thing is the aspect ratio.
In my case, with Xcode 7, the Images.xcassets was missing from the Build Phases, under Copy Bundle Resources. Then I just added it manually and the problem was gone.
Try looking at the code for "LaunchImage" and rename it to "Default"
Check and compare carefully if your image size matches the expected size. In my case I was using a wrong size, but when correcting the project built fine.
Check this attached image to see where you can compare them
I have a 120x120 icon image that's working fine on emulators - however when I try it on my device, the icon doesn't show up. Any thoughts?
I figured it out. This was actually really annoying. So the UI designer had simply renamed his .psd files with .png and xcode thought this was fine. However, renaming the .pngs isn't going to automatically make them real .pngs. The way I solved this was going to mac preview and exporting the files to the PNG format.
Sometimes some of the images get cached by the OS.
Delete your app completely from your mobile device (press and hold, then delete the app)
Turn off your device and turn it on again.(This ensures that the cache gets cleared)
In xCode, clean the project and rebuild.
Load the software again you your device.
You should be able to see your icon as long as its properly added to your project.
Drag your app over another app to group both into a folder. Then drag the app out of the folder.
Check your info.plist file. Make sure the icon entry looks something like this (use your own image file names of course):
If you see another "Icon already includes gloss effects" row outside, remove it.
It is not uncommon not to see your app icon on the device. However, when your app is being uploaded to the App Store, everything will be fine.
Is your iOS device running iOS7? If not, you will need to include 57x57 and 114x114 icons as well. See https://stackoverflow.com/a/18737063/1646862 for icon sizes apple requires. It is always good to include all icon sizes you may need in your iOS bundle.
I have the problem that starting my app on iPad shows me 2 splash-screens. First one is correct iPad-splash. Second seems to be the splash of iPhone app (replaces the first one after about 500ms).
The devices-option in build settings is set to "universal".
Filenames for the images are:
Default-Landscape~ipad.png
Default-Portrait~ipad.png
Default#2x.png
Default.png
(in that order, not sure if that matters)
has anyone an idea why this happens?
Thx in advance.
max
Simply add a Default~ipad.png file to your project for a iPad specific splash. The Default.png is meant for iPhone. For more info, see also the good blog entry Icons and launch images for iPhone and iPad apps.
I have an icon (57x57 pixels) which I copied to recources folder and added it to info.plist
but I don't see it on iPhone.
Can someone help me?
The bible of app icons is Apple's QA1686. If you're sure that the file's in your project, and named in the Info.plist, my next question would be: is it a PNG file?
Once in a while I have noticed that if you add an icon to your app and then run the app on your phone or on the simulator, that the icon will not show up. If this happens, I usually have to manually remove the app from the device or simulator to get the icon to appear.
When the app loads, if we want an image to be displayed we use one named Default.png. And I used it for icon too. But are working fine in simulator.
But when I try it in device at both places its blank. Can anyone sort me out of this?
Try cleaning your project using this button
alt text http://grab.by/1AzW
And then reinstall the app...
According to Apple HIG your Icon.png should be of 57 x 57 pixels, with 90 degree corners.
and Default.png should be of 320 x 480 pixels.For more info follow MobileHIG
For splash screen
Add simply a Default.png to your project’s Resource folder.
For icon
2.Add a icon.png to your Info.plist
i.e. Key = Icon file , Value = icon.png
3.If all this doesn't work then delete the build folder and rebuild your application (but before build press Clean All button in xcode).
4.If this also doesn't work the change image name to default.png ( not Default.png)
Check the case of the file. It needs to have a capital D. On the simulator Default.png and default.png are the same but not on the device.
Try removing the application from the device and reinstalling. I know, silly, but sometime's fixes xcode/device issues.
Please check if the size of your Default.png is 320*480 and if you have converted it from any other format, make sure you have not just renamed but properly re-saved the image in png format.
Hope this helps.
Thanks,
Madhup
Yes, I think it's because of the "capital D" issue.
I've seen the same problem with UIImageView.
I also had this problem today but due to the way I added the Localized Default.png files. I manually put them in their respective en.lproj and fr.lproj directories on disks and then I added them to xcode which was properly showing them as Localized. They were showing up properly in the simulator but I only got a black screen on the real devices.
I removed them from XCode, put the english ones directly in my resource folder, added them to XCode and marked them as Localized from in there. It then started to work.
This was in XCode 3.2.6 (IOS 4.3).
For those who didn't catch correct image on device:
Makes ure that Default.png is ACTUALLY PNG format.
I've saw this problem when my Default.png was .JPEG file that was renamed to .PNG
I tried everything and this still didn't work... Finally I changed my Default.png name to Splash.png and in my info.plist I added 'Launch image' and said it should look for 'Splash' - This fixed my problem!