Discussion Forums  >  Uncategorized

Replies: 6    Views: 472

WhatWeDoMedia
Aspiring developer
Profile
Posts: 8
Reg: Nov 03, 2011
Los Angeles
80
11/04/11 07:31 PM (14 years ago)

Splash screens and dpi

Hi everyone, I've been driven mad by the splash screen issue all afternoon and finally found something that worked. I followed all of the steps to creating a splash screen with custom image but no matter what I did I always ended up with the black screen. This happened even after I replaced all of the default BT_images files with my own, but with the same name (same dimensions etc). The files appeared in Xcode and for all intents and purposes should have worked but still no joy. For reference I created the images in Illustrator, saved as a 300dpi png (much better vector function) then exported them into with Photoshop then exported in 72dpi with the correct screen dimensions. I thought this was correct. After doing this several times to no avail I thought to open the Default.png (black image) that came with the source code and lo and behold the dpi is set to 71.12 NOT 72. I'm not sure why this is but I imagine it's something to do with the iOS that is beyond my comprehension. Regardless I took those images, dropped mine on top, deleted the lower layer and saved (all in photoshop) the png (don't use save for web). This resulted in the app immediately loading my splash screens and now I am happy :) Thank you to the developers for this amazing software. I hope this guide is helpful to fellow dev's... I only hope my advice is technically accurate ! Please feel free to correct me if I'm wrong or have found some unique hack around something that should be done differently
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/04/11 07:57 PM (14 years ago)
This drove me mad as well until I found out that Default.png gets loaded BEFORE the splash screen we specify in our BT apps! Once I figured that out, I disposed of the splash screen configuration, and changed Default.png (and all the other Default*.png files) to what I wanted the splash screen to be. That provided the functionality I was looking for. However...this does deviate a bit from what Apple says the Default.png image is supposed to be used for. According to them, it's supposed to load a view of your application in order to give the impression to the user that the application is loading. But, if I follow that, and my splash screen comes after Default.png, then the whole thing would look weird. And, very few other apps that I've seen follow that approach, so I did what worked best for me! I used GIMP to create my Default.png files and it works out pretty well. Plus, it's free! Thanks for the info you provided! Mark
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
11/05/11 09:05 AM (14 years ago)
Which folder is default.png in? I see one in the Quiz folder, but that can't be the right one....
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/05/11 09:13 AM (14 years ago)
All those black images you see in the root of BT_Images are the ones I replace'
 
WhatWeDoMedia
Aspiring developer
Profile
Posts: 8
Reg: Nov 03, 2011
Los Angeles
80
like
11/05/11 11:10 AM (14 years ago)
Hi Mark, thanks for the info, really helpful.. I'm now looking for a way to get the devices to recognize the Default-Landscape.png variations when the device is rotated. I have all the files ready but the devices are simply reading the Default.png versions (portrait), leaving white space either side. Any experience/success with this issue?
 
WhatWeDoMedia
Aspiring developer
Profile
Posts: 8
Reg: Nov 03, 2011
Los Angeles
80
like
11/05/11 02:34 PM (14 years ago)
Hi Mark, I was able to put your advice into effect and get all of my images displayed correctly, what you were saying now makes complete sense :) Now, i know we're not technically supposed to use the Launch screen as a splash screen, but I would like to display the default.png for 3 or 4 seconds, in effect making the Launch screen a splash screen. Do you know where I can increase the display time of the Launch image? I found references to creating a 'sleep' entry in the app delegate 'm' file but the 'applicationDidFinishLaunching' code doesn't appear to exist in that file.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/05/11 08:35 PM (14 years ago)
Hi, Not sure how to increase the presentation time for Default.png. I'd Google it and see what others say. With respect to rotation, in your app control panel, under Core Properties, there is a Allow / Prevent Rotation (landscape, portrait) section. Make your choices there. Then, in Xcode 4.2 (not sure about Android stuff), on the Info panel for your app, you can select the different Default(whatever).png files you want to include, including rotation. Mark
 

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.