Hiding Status Bar in iOS with Actionscript/Flash Builder - ios

I've been playing around with trying to remove the status bar in iOS while compiling with Flash Builder. The problem is that I need the status bar to be there sometimes, but only during certain views does it go away, so just setting the true in the application xml file will not work.
I've also tried using stage.displayState = "fullScreen", and stage.displayState="normal". This works in the emulator, but when I test on the actual device, the stage.displayState never changes from its original state.
Anyone know of a way to do this, or if it's even possible using Flash Builder?
If not directly through actionscript, does anyone know of an ANE (air native extension) that would be able to toggle the status bar for both iOS and Android?
Also, for more information, I'm using Flex 4.6/AIR 3.4 SDK.
Thanks!

I know this is really late, but for anyone still looking for a solution to this issue, there is an ANE that allows you to do this. https://github.com/sharkhack/IOSStatusBarAne
To use it, simply call com.azer.IOSApplicationSettings.Settings::StatusbarHidden("YES");

Related

How can i remove the side lines when selecting a text in IOS in react-native?

As you can see in the above image I want to remove both the sidelines in ios in react- native, I have tried every prop available in the text-input but nothing is working.
Is there any solution for this?
I don't think thats possible even on native side

iPhone web application : the virtual keyboard opens unexpectedly

I am having a very weird issue on an iPhone and I would like to have suggestions on the best way to troubleshoot. My web application works fine for a moment then suddenly all text fields and buttons will have no effect, but only to open the virtual keyboard.
For example, a "delete" button which used to display a "yes/Cancel" modal will only make the keyboard open, the modal won't show up... When I reload the page, everything is working as expected again.
I am testing with an iPhone 6 and Chrome.
Did someone already encountered an issue like that?
I have absolutely no idea how to track down this behaviour and all suggestions are welcomed, What do you suggest I should look in priority?
This issue was coming from a bug in a version of Chrome I was using at that moment (I have no idea which one, since my phone has regular automatic updates).
I strongly advise to have always at lease two different platforms when testing websites!

In iOS can you guarantee the status bar is hidden?

I'm using React Native. I haven't done iOS stuff in a while, I remember in the pre React Native days (or rather, older versions of iOS) you didn't have as much control over the status bar. But now, it's easy-pz. I can easily get rid of it.
The reason I'm asking is because if I can guarantee it's gone, I don't see why keep it all, and I'll just use the space to move the nav bar up and give more space to the content.
Perhaps someone would like to enlighten me.
Yes, you have a complete control over the status bar.
You can easily hide it.
Check the docs here for more information on the matter.
simple add this to your render function:
<StatusBar hidden={true}/>

IOS prev/next button close keyboard unexpectedly

I'm currently using PhoneGap (Cordova) to build an App on iPad/iPhone.
One of my page in the app (in html/css/js), have more than 100 input type Number.
When i use finger to target each of them, it's working like a charm.
But when i use the prev/next button from IOS Keyboard, sometime, i don't know why, keyboard slide to down and when i try to open it again with targeting a input with my finger keyboard just blink... Impossible to fixe it without a scroll to release all event.
I've clean my code, refactored some part, look on google and stackoverflow if someone had the same problem but i found nothing...
Did someone know if it's a UIWebView problem ? Or phoneGap? or something else?
Thank's for reading.
If you are happy to just remove the next/previous buttons from your app entirely, the new Phonegap/Cordova 2.6.0rc1 has made this incredibly simple.
In your config.xml file, just set the HideKeyboardFormAccessoryBar preference to true.
In order for those two buttons to work you need to specify their behavior and it seems that it is not specified. Made some research and I think you have two options. Either you get rid of the next/previous buttons at all like explained here or you override textFieldShouldReturn: in a way similar to what is described in this post.

How can I inspect elements on native iOS application

I am running an iOS native app on iOS Simulator and would like to inspect the elements on the app to get the ID.
Does anyone knows how this can be done?
Note: Please, this question is for iOS native App not Web based app!
Thanks
It sounds like you may be looking for something like Firebug or the Chrome Inspector for your native app? I'm not sure what you mean by "ID". Interface elements in iOS don't really have IDs the same way DOM elements have IDs.
You should check out the Spark Inspector (http://www.sparkinspector.com/), which allows you to see the views of your app and modify them at runtime - it may help you see what you're looking for. Full disclosure: I am the author of the app ;-)
There is a new app, called Reveal, that does an incredible job.
Not only you can check view's properties, you can also view all the app in a "exploded" 3D view, change the sizes and properties.
Specially for iOS 7, where the view controller starts from the beginning of the screen (and not below the navigation bar), it can be really useful.
You can download the trial at http://revealapp.com and decide which license you should get.
There are two Best ways for this -
Use Accessibility Inspector which is Apples's inbuilt tool so you don't need any other support .
As you will be using Xcode mostly for you code part, there is an option to play UI recording which capture all the actions and elements that you interact with on native app.
You need to inspect the App's Bundle.
Check this answer on stackoverflow, to get the appID: https://stackoverflow.com/a/8883166/933887
Appium has an inspector for ios applications.
This is the link for appium: http://appium.io/
and in this video you can see the inspector in action: https://www.youtube.com/watch?v=jQZTRz2W9xg

Resources