Page 1 of 1

iPhone Status Bar Not Showing Up...!

Posted: Mon Feb 02, 2015 2:30 am
by Gage
Hello wonderful friends and superheroes all,

I want to deploy my app to iPhone/iPad. I'm working on getting all of the orientation and layout stuff worked out right now, and I have been trying to figure out how to get the native Status Bar to show up. I'm referring to the device's (black) bar at the very top of the screen that shows the battery, signal strength, time, etc.

Right now, my app's Standalone Settings have the "Visible" radio button selected under the "iPhone Status Bar" and "iPad Status Bar" options in the "Status Bar" section of the iOS standalone settings. I have also scripted the following if statement into the PreOpenStack handler of the stack in question:

if the platform is "iPhone" then
iPhoneUseDeviceResolution true, true
iPhoneSetStatusBarStyle "opaque"
end if

Even though both of those are in place, the black bar does not show up; the white text that shows up on top of it just overlaps with my app. The app itself goes all the way to the top of the screen. I'm thinking there is absolutely NO WAY that this has not been accounted for in LiveCode... I must be doing something wrong.

I have been puzzling over this issue for many months now, and have until this point relied on a workaround that in no way appeals to me any longer, since it is very intricate and seems to be unnecessary, given that there seem to be TWO options that SHOULD set this thing to show up on its own.


Thanks!
Phil E.

Re: iPhone Status Bar Not Showing Up...!

Posted: Tue Feb 03, 2015 11:08 am
by Mark
Hi Phil,

Why don't you rely on the standalone application settings? You don't need to put this into a script. If you insist on putting these commands in your own script, perhaps you'll have a better result using the startUp handler instead of the preOpenStack handler.

Kind regards,

Mark

Re: iPhone Status Bar Not Showing Up...!

Posted: Tue Feb 03, 2015 11:38 am
by Gage
Mark,

Actually they only found their way into the script because the standalone settings themselves were having no effect. Now I have both because I figure SOMETHING that says it's meant to do that should work at some point.

I will try placing them in the StartUp handler instead of the PreOpenStack handler.

Thanks!
Phil E.

Re: iPhone Status Bar Not Showing Up...!

Posted: Tue Feb 10, 2015 9:32 pm
by Gage
Unfortunately, that had no effect, and nothing else I have found has worked.

Seems like a pretty easy one to answer here, I just have a blindspot... I think.

Anyone know anything? Is it a LiveCode bug that the Status Bar is not showing up when I select the option for it to? (This is my suspicion, but I don't want to assume too much and point fingers since I am always learning new stuff).

Cheers!
Phil E.

Re: iPhone Status Bar Not Showing Up...!

Posted: Tue Feb 10, 2015 10:14 pm
by Mark
Hi Phil,

I see that you have entered a bug report. Probably we should wait and see what RunRev says. I haven't experienced this problem myself.

Kind regards,

Mark

Re: iPhone Status Bar Not Showing Up...!

Posted: Wed Feb 11, 2015 5:24 am
by Gage
Mark,

Did I? I couldn't recall if I wrote one or just imagined writing it. The last one I have a confirmation email about was a similar, but unrelated issue. Could you please tell me which Bug Report # you're referring to so I can revisit it? I'm not sure how you found it.

Thanks,
Phil E.

Re: iPhone Status Bar Not Showing Up...!

Posted: Wed Feb 11, 2015 9:19 am
by Mark
Hi Phil,

I thought Phil E. is the one who wrote this bug report. It seems to be exactly your issue.

Kind regards,

Mark

Re: iPhone Status Bar Not Showing Up...!

Posted: Wed Feb 11, 2015 9:22 am
by Gage
Mark,

You're totally right! I thought I had written this... I just never got any confirmation email about it (that is normally how I track my bugs). Sorry if I'm being thick here, I appreciate your linking that up for me.

So, I will just assume they haven't emailed me because they haven't opened that bug yet and do as you suggested: wait.

Thanks again mate!

Phil E.