Default.png file is not being loaded on device - iphone

I am trying to display Default.png image when application starts. So user wont have to see that black screen. But the problem is its working fine on simulator but on device its not being loaded and black screen is being shown before app loads.
What could be problem?
Any help would be appreciated.

first delete your app from the device.
then when your app open on the xcode press on the upper bar product -> clean
make sure the image are name "Default.png"
run on your device! :)

Does it not show the Default.png at all, or just after a short period of time ?
Not at all: Try setting a new Default.png in the Organizer
After short time: When hitting build and run your app needs some time to start up, because the debugger is linking itself to your app, this causes a delay of a couple of seconds where your default.png is not displayed.

Related

Updated splash / launch not working

I will add localization to the splash image from my app.
I created the images and put them in the correct folder, but when I launch the application "updating" my app in the simulator it still shows the old image.
I tried to cleand and build with no results.
If I delete my app and istall it again, it works fine!
I did a test in 2 iphones from my company and in both I got the same behavior, I have to delete and install the app to update the images.
My question is: This will happen when I update the app on the apple store? The users will continue to see the old splash image?
Your users shouldn't see the old image when updating from the app store. From what I have seen and heard from others, the install process in the simulator from Xcode is more of a copy/paste action than and update/install action. As long as a clean run works fine, it should be safe to assume that your app store version will work fine as well.
One Suggestion.. if you just want to show SPLASH PNG image then just use default.png name of the splash image in you Resource folder... Don't code anything for splash png image...
iPhone will automatically detect this default.png as a splash image..

iOS window-based-app projects kill problem

When I create a window-based-application (in Xcode 4, via simulator and iPhone device, even if don't add anything to the project or the window),
if I kill the app, when I open it again the view is frozen and when I click the home button it disappears into a black window and I can't do anything...
What is the problem?
Thank you!
check if the application is running in background, it should be in your plist.
that will be a start, if the problem is still there u should post some of your code.

ios Kill app problem

I'm developing an iOS app with core data.
Every time I kill the app (by pressing the home button twice and kill)
then when I load the app again, the view is the same as before (maybe because it was restored successfully) but it's stuck without any error... if I press home button again then the screen becomes black and I can't see anything....
just the threads in Xcode and the status is "running"...
Anyone has an idea? or somewhere to start digging in?
Thank you!
I know this problem. It is because of Xcode 4. Here's the deal => Try running the App in the iPhone/iPad and you will not have that problem.
From my experience, the problem exists with the iPhone simulator and it works on the device !!

how to change the background of an iphone app when it launches?

Everything is in the title but I have to make myself clear :
I don't mean : how to automatically change the background of the app once it has finished launching.
What I mean is : when you first launch the app, before the first view is loaded by the iphone there is a black screen. Is it possible to change this black screen which I get when waiting for the first view to appear? I'd like to put a picture instead.
Thanks!
John
You need to set a Default.png and a Default#2x.png (for retina) and all the work is done for you. Or if you have payed to be a developer, download xcode 4 gm, and you can double click on the loading screen area and you can have it named what ever you wanted.
Just add a picture called "Default.png" to the project (size of the iPhone screen) and it'll automatically appear.
You can add Default.png and it's variations to your project. This image will be displayed as splash screen during application startup (before the first view is loaded).
Search for Application Launch Images at ...
http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/BuildTimeConfiguration/BuildTimeConfiguration.html
You must specify Launch image
http://developer.apple.com/library/ios/#documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html%23//apple_ref/doc/uid/TP40009252-SW9
The docs here explain the different types of launch images can should use:
http://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/BuildTimeConfiguration/BuildTimeConfiguration.html#//apple_ref/doc/uid/TP40007072-CH7-SW12

How to set the start screen in iPhone app?

I developed an app which takes 2-3 seconds to start up. I want to show a picture in this time frame, a UIImage or some other view. How can I do that? I tried pasting it in the window but it isnt showing.
You need to add an image to your project called Default.png. This is what the iPhone will show while your application is launching.
The easiest way to accomlish this is as follow:
1. Start XCode
2. From Xcode run the app on the iPhone and have it show excast screen you need
3. in XCode start Organiser tool
Organiser tool will allow you to capture screen directly from the connected iPhone and will even give you an option to have this saved as default.png directly as part of your project.
Worked great for me