I create a new iOS project in XCode 5. I choose to use asset catalog for both app icons & launch images. When I run the application, the app icon is overlayed on the launch image. How do I prevent this?
This is my app icon:
This is launch image:
I get this as the launch image on the simulator (and in device)
For those who come here searching, I solved this issue. The launch images should be opaque and not transparent.
I used iDraw to create the launch image. Instead of exporting the entire canvas, I selected 'all objects' which created a transparent image, which caused this issue.
Now it is solved and submitted to AppStore
Related
How to get rid of this default white launch screen in ios? I have deployed my app in App store , this screen is still showing in live version . I want to start my app with my custom splash screen.
How to solve this? anybody can help please.
Thank you in advance.
In iOS content displayed on Splash screen is loaded from LaunchScreen.xib file.
To view this file:
Open your project in xcode.
On the left menu, expand your project node and then expand your project framework node.
There you will find LaunchScreen.xib file, open that.
Once you open it, you will find configuration settings on right bar where you set the attributes of the content to be displayed, but before that make sure that you have placed your necessary image files on image assets, in order to be accessible from the configurations settings.
You can use react-native-splash-screen in order to hide the default splash screen configured in ios/YourAppName/Base.lproj/LaunchScreen.xib.
This default splash screen will still be seen very briefly so you can get rid of the text in it and change the colour if needed (in your favorite IDE) to have a nice transition to the next screen (your custom react-native splash screen).
When I download my app in appstore, I'm using iOS9.
My app lost splash screen, instead of black screen and screen size as iphone 4.
I don't use asset catalog.
How can I fix it? Thanks you!
To resize for each iPhone you have to use asset catalog.Use asset catalog and specify launch files for each device.This will solve your problem.
I am developing a Windows 8 metro (yeah!) app. How do i provide a screen resolution dependent image source ?
As per these guidelines, we can achieve it using image naming convention too.
I have an image control as show below.
<Image Source="Assets/test.jpeg"/>
I also have test.scale-100.jpg, test.scale-140.jpg & test.scale-180.jpg images in asset folder. Each image having different icon color to identify which image is loaded.
If i run the app in simulator and change screen resolutions, i still see test.scale-100.jpg for any resolution. Why is this happening ? In which case will the OS load test.scale-140.jpg or test.scale-180.jpg image ?
EDIT: I got it working. Once your app starts in simulator, close it by pressing home buton & uninstall it. In VS, right click on Project and click on Deploy. App should be now deployed to simulator. Change the resolution and start the app. You should now see correct image loaded by OS. Rinse and repeat to test other resolutions.
The scaling is automatic. If your images are correctly named, and you change resolution in the simulator you must restart the app to see scaled images. It doesn't happen on the fly, IIRC.
Finally got it working. close the app and uninstall it from
simulator.
In VS, right click the project and click deploy.
Change to desired screen resolution and start the app. OS should not pick proper image as per resolution.
Rinse and repeat same to test images on various resolutions.
I have xcode 4.5.2 and work with iOS 6. I need create photo library, and i must keep photo and show my app with only simulator. And i can't find directory where i can paste my photos (like photo library on iPhone) for further browse this photo to my app. Or how browse photos to app Photo in iOS Simulator. I saw some links like
Users/Library/Application Support/iPhone Simulator/5.0/Media/DCIM
but i have not such directory =(
So if i will use
UIImagePickerControllerSourceTypePhotoLibrary
where i must find photos, if i use only iOS Simulator without any apple devices?
You may need to create DCIM if it doesn't already exist.
You can add photos from safari in the simulator, by Tapping and Holding on the image. If you drag an image (or any other file, like a PDF) to the simulator, it will immediately open Safari and display the image, so this is quite an easy way of getting images to it.
simple steps :
1) Drag & Drop image onto simulator
- this will open a browser with your image
2) Click & hold image
- this will open options
3) save image
- this will copy image onto simulator
here is how you add an image to the photos in your xcode simulator. start the simulator by selecting your app and run it. then stop the run operation in xcode so you can go to the home screen in your simulator. drag and drop an image into your simulator screen. depending to what version of the xcode you are using it will differ how you save the image. i use Xcode 4.5. in 4.5 when you drop the image it opens a web view like window. on the butom of the screen you can tap the middle icon and it gives you the option and icons for sharing. just save the image to photos in there and there you have it. hope this helps.
I want to build an application that when the folder is drag and drop to my app, it will retain path and show custom image. so here is the screen shot of my app.
So as you can see in the screen shot, when i drag and drop folder on my app it will display the folder with the custom frame. So the problem is i want to change the folder icon shown in my app to other picture. I am still new to cocoa programming so i hope anyone can point what code to use to change the folder icon in my app. anyway i am using xcode 3.2 to build my app.
You need to point to a directory that contains images. if you point to a directory that only contains directories, this is what you get.