Page 1 of 1
IOS Simulator squishes screen
Posted: Thu Feb 14, 2013 7:25 pm
by jekyllandhyde
Just starting out with this platform, the only thing I have ever programmed is a thermostat so please bear with me.
Xcode = 4.41 and 4.5.2
Live Code = 5.5.3
Mac OSX = 10.8
IOS 6.0 and 5.1 SDK
I have setup my development environment and successfully simulated some test screens using settings for IOS 5.0 and up. Things are working nicely for 3.5" screens but the 4" Iphone screen in the simulator shows the screen squished (see attached png). My stack is setup for 640 x 1096(with status bar). I have implemented the following script to stop the screen from being blown up in the simulator:
on openStack
if iphoneDeviceScale() is "2"
then
iphoneUseDeviceResolution true, true
end if
end openStack
How do I show the screen properly in the simulator when IOS 6.0 is selected with 4" screen?
Thanks in advance.
Re: IOS Simulator squishes screen
Posted: Sun Feb 17, 2013 1:40 am
by jekyllandhyde
I have successfully duplicated this bug with the ticked-off final sample stack from the lesson 4 folder - /Lesson4/5. Coursework/Ticked Off Stage 3 Complete.livecode . To see the problem (assuming you have the same versions of Xcode and Live Code that I do), try the following: Build the App for IOS 6.0 using the ARM 7 option. You will see the desktop in the 4" screen simulator is the right size, but when the app runs it shows squished (including splash screen for demo version of live code). Someone else must have seen this?
environment:
Xcode = 4.41 and 4.5.2
Live Code = 5.5.3
Mac OSX = 10.8
IOS 6.0 and 5.1 SDK
Re: IOS Simulator squishes screen
Posted: Sun Feb 17, 2013 3:50 am
by Mag
Hi jekyllandhyde, do you provided (File > Standalone Application Settings) a 640 x 1136 splash screen? I think that iOS needs it to assume that the app runs "natively" in a 4-inch display.
Re: IOS Simulator squishes screen
Posted: Sun Feb 17, 2013 4:01 am
by jekyllandhyde
Im running the evaluation version so Run Rev inserts there own splash screen instead of mine and it is squished.
Re: IOS Simulator squishes screen
Posted: Sun Feb 17, 2013 4:15 am
by Mag
So, you had set a 4-inch splash screen here: "File > Standalone Application Settings > iOS" and it doesn't work?
PS
I'm not sure but I think that what is called "Splash screens" in LiveCode Application settings, actually are "Launch images" (speaking in Xcode terms). The splash screen you see in evaluation version I think is something of different (please somebody correct me if I'm wrong).
Re: IOS Simulator squishes screen
Posted: Mon Feb 18, 2013 9:09 pm
by jekyllandhyde
Yes I have a 640 x 1136 pixel splash screen set in application settings in Livecode for 4" screen (but it is ignored anyway due to the trial version). The latest strange thing I notice is that if I set the OS version to 5.0+ and then I compile and view in Xcode in 4" screen size, it will display properly. Xcode behaves strangely in that it usually automatically switches itself to IOS 6.0 when 4" screen size is selected. The odd time it doesn't though for IOS 5.0 and that is when I see the 4" screen displaying properly. Given that the Iphone 5 never came with an OS less than 6.0 it doesn't help me much to compile for IOS 5.0+, if I want to support the IPhone 5.
Re: IOS Simulator squishes screen
Posted: Mon Feb 18, 2013 10:56 pm
by jekyllandhyde
I just upgraded my environment to:
Xcode 4.6
IOS 6.1SDK
Mac OSX 10.8
Livecode 5.5.4 (trial)
I ran both the ticked off sample and my project as a build for both IOS 6.0 and 6.1. Same results with viewing for 4" screen. Still squished top and bottom and I'm still frustrated. This time I selected no splash screens at all because the trial version builds them automatically.
Re: IOS Simulator squishes screen
Posted: Tue Mar 05, 2013 6:21 pm
by jekyllandhyde
This issue is fixed. It is caused by the trial version of Livecode. Once the IOS deployment pack is licensed, the IPhone 5 screen displays properly in the simulator.