Discussion Forums  >  Uncategorized

Replies: 3    Views: 220

mmedia
Code is Art
Profile
Posts: 34
Reg: Sep 03, 2011
location unknow...
340
09/29/11 07:53 PM (14 years ago)

Launch image not launching correctly on iPhone

I've added a launch image as Default.png. It works just fine on the iPhone simulator and loads in 2 seconds, but on the iPhone, the launch image takes about 30 seconds to load, and cannot be launched again after the app is shut down on the iPhone - the only way to get it to launch again is to rebuild on xcode and relaunch the app on the iPhone. Anyone have any idea about what is going wrong here. Spent quite some time yesterday going through the provisioning and certificate process (complete with codesign errors) and finally got it up and running on the device. Just want to get past this last (hopefully) hurdle.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/29/11 09:46 PM (14 years ago)
30 seconds to show Default.png - something for sure isn't right. However, provisioning and codesigning has NOTHING to do with the way iOS launches apps. It has everything to do with the compile process but not the launch process so no worries there. The Default.png graphic will only show when the app is being LAUNCHED. Launched is different than being transitioned from the background to the foreground. In other words, in most cases the app is not being launched but instead being moved to the front of a series of apps that are put to the background. Not sure if this helps or not but I can't seem to understsand what's happening here. Bottom line, your Default.png image in your project should only show for a moment when the app launches and it should not show after a few seconds.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/29/11 09:56 PM (14 years ago)
And it's worth noting that if you launch an app on iOS...then hit the Home key and go to another app (or leave the app via another means like a URL or something), the app has not closed and exited. So, the next time you launch the app, as David says, you will not see the Default.png image. You won't see that again until the app is launched from scratch again. One way to kill an app so it'll launch from scratch is to do the following (which I have copied from Lifehacker.com): Hold to kill background apps: Currently in iOS4, if an application supports multitasking, it'll run in the background by default—kind of a strange choice, considering Apple asks you to confirm push notifications for apps. What this means is that as more apps start supporting background processing, you may end up with a ton of apps running in the background that you don't really need or want running. To remove an application from running in the background, just pull up your quick switch drawer (double-tap the home button), then tap and hold on an app (like you do when you want to delete an app from the home screen until you see a red minus sign (-) on the corner of the app's icon. Tap it to kill the app. If you do this, and launch the application again, it should show Default.png as expected. Mark
 
mmedia
Code is Art
Profile
Posts: 34
Reg: Sep 03, 2011
location unknow...
340
like
09/30/11 07:01 AM (14 years ago)
@David - thanks, sorry to confuse you with mentioning about the codesign errors - that's completely unrelated to the launch image issue. It loaded much faster the next time I launched it from the iPhone. @Mark - thank you for this great tip - I tried it and I can see that the launch image is behaving properly now.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.