Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 209

cpmilez
Aspiring developer
Profile
Posts: 63
Reg: Jan 03, 2012
Ipswich, UK
6,030
11/23/12 03:37 PM (13 years ago)

Splash screen iPhone5

Hi All, Finally getting into buzztouch and about to submit my first app. Just wanted to check a possible issue i've found with the splash screen on the iPhone 5, i would say is probably down to the increased screen height. The splash screen doesn't cover the tabs at the bottom, this isn't so bad though it would be good if it did but my main issue is when it fades or scrolls back it shows the bottom line of the home page briefly before fading/scrolling away. I've also replicated this in the retina 4 inch simulator. All other devices are ok that i've checked. Does anyone know how to change this? TIA Chris
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/25/12 02:04 AM (13 years ago)
Yup, heard this a few times....this plugin will get updated soon. Assuming you're using buzztouch 2.0 and not the older stuff? Find BT_screen_splash.m in your project. There are three possible views that are added to the screen that hold up to three things, all should cover the entire screen. --Background Color --Background Gradient Color (iOS only, deprecated, you should not be using this) --Image View Each of these are created using a "frame" object (built in iOS object). Each frame has a size. You'll see on line 80 a frame is created for the Background Color view where it does: bgColorView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 500, 500)]; The second "500" is the height of the frame. iPhone 5 has height 568. This means if your splash screen is using a background color it will NOT cover the tabs, like you said. Change the 500 to 568, bet it works. Cheers.
 
cpmilez
Aspiring developer
Profile
Posts: 63
Reg: Jan 03, 2012
Ipswich, UK
6,030
like
11/25/12 05:56 AM (13 years ago)
Great Thanks David that did the trick.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/25/12 05:56 AM (13 years ago)
Super.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
12/01/12 07:28 PM (13 years ago)
nice!
 
CasimiraMorence
Apple Fan
Profile
Posts: 3
Reg: Dec 08, 2012
China
30
like
12/10/12 10:25 AM (13 years ago)
Hi guys, a small update if anyone is interested. If you added a splash screen named Default-568h@2x to the data folder everything worked fine. So if you programmed your code to detect the phone and load everything in the right place.. or scale them etc. and you added the splash screen everything was running great (note that you must add additional icons for ipad etc. using the .plist file. and not adding them using x-code menu. because x-code then "breaks" open-frameworks and makes the final binary double the size because it copies all your files into the same directory. So everything worked fine... But the problem is that NOW apple retrospectively added a filter in itunes-connect that detects if your binary contains a splash screen named Default-568h@2x. and your target sdk. If you used an "older" version of X-code for example ios5.1Sdk your binary gets automatically rejected. My question is the following, if anyone knows. will ofSetupOpenGL() method run the app on FullScreen of the iphone5??? or will it run it using 640x960 aspect ratio? Assuming that you said: Code: view plaincopy to clipboardprint? ofSetupOpenGL(iOSWindow, 640,1136, OF_FULLSCREEN); will the OpenGl window cover the entire screen of the device or will it run using 640x960? Having in mind that the splash screen what resizes automatically the glwindow of the device I was wondering what it will happen without it but with iOsWindow saying run on 640x1136. -------- http://saraoutlet.com/iphone5-cases-covers.html
 

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.