Hi Rami,  

If you can get the 4.12 SDK nightly, iOS7 status bar is managed automatically.

If you can't: 
Regarding your code below, it does not work because everything happens in the 
skin (ViewNavigatorApplicationSkin), so it's there where you should shift your 
view.
So make a custom skin, and shift the content  (navigator skinPart).

HTH

Maurice 

-----Message d'origine-----
De : Rami Tarabay [mailto:[email protected]] 
Envoyé : vendredi 14 février 2014 09:49
À : [email protected]
Objet : Re: IOS7 status bar management ( FLEX-33860)

Hi,

I'm using flex 4.11 SDK with adobe air 4.0 and flash player 12.0 I'm trying to 
paddingTop my entire ViewNavigatorApplication on creationComplete or on 
drawbackground and it is not working.

protected function
abstractmainview1_creationCompleteHandler(event:FlexEvent):void
{
    var osInfo:Array = Capabilities.os.split(" ");
  var versionNumber:Number = parseFloat(osInfo[2]);

  if(versionNumber >= 7) {
var t:Number = height>=960 ? 40 : 20;
// setStyle("top",t);
        setStyle("paddingTop",t);

}
}

Any workaround ?!


On Tue, Dec 3, 2013 at 3:18 AM, Maurice Amsellem < [email protected]> 
wrote:

> Thanks
>
> -----Message d'origine-----
> De : Justin Mclean [mailto:[email protected]] Envoyé : mardi 3 
> décembre 2013 01:33 À : [email protected] Objet : Re: IOS7 status 
> bar management ( FLEX-33860)
>
> Hi,
>
> I think the proposed solution is a good compromise, we need to be able 
> to support iOS7, and as noted other framework are also having this 
> exact same issue. It's almost like Apple only wants you to only write 
> native apps :-)
>
> > The main and simple reason for that is am physically exhausted.
> Feel free to take a break or go  slow for a while, you don't have to 
> fix something every day. Plus it makes the rest of us look lazy :-)
>
> Thanks,
> Justin
>
>


-- 

Kind Regards,


 Rami Tarabay



Mobile App Developer | Codefish Apps | www.codefish.com

t +961 5 450824 | m +961 70 170857

Reply via email to