• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS 7 - Overriding NSNavigationController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS 7 - Overriding NSNavigationController


  • Subject: Re: iOS 7 - Overriding NSNavigationController
  • From: David Duncan <email@hidden>
  • Date: Wed, 25 Sep 2013 09:44:16 -0700

On Sep 21, 2013, at 5:14 AM, Dave <email@hidden> wrote:

> On 20 Sep 2013, at 20:41, David Duncan <email@hidden> wrote:
>
>> If you are building with the iOS 7 SDK, wantsFullScreenLayout should not be consulted for your UI layout at all by the framework. The only thing I can imagine the original engineer wanted was to avoid having to set the flag to NO manually, and thus have it done automatically.
>
> It's because another part of the code relies on it for laying out its view. Is the effect of  wantsFullScreenLayout in iOS 6 described in detail somewhere? The best approach would to adapt the code to work on any iOS Version (well, 5, 6 and 7 in this case) without fiddling with wantsFullScreenLayout is this is possible?

wantsFullScreenLayout is generally a flag to request that your view controller’s view be laid out underneath translucent elements (such as a translucent navigation bar or status bar). In practice its behavior is somewhat confusing and a bit arbitrary.

Keep in mind that rather than overriding the getter, it would be simpler to just set the value as you desire in your view controller’s -init* methods.

>
>> Of course even if you build with the iOS 7 SDK and deploy to iOS 6, the flag will be honored there as specified.
>>
>
> Ultimately we want to use some iOS 7 features so it needs to be fixed in iOS 7, I'm wondering how much of a change it will be and if it's worth rewriting it so will work on 5 6 and 7.


As noted, UIKit doesn’t look at the wantsFullScreenLayout property with applications linked on the iOS 7 SDK, instead using edgesForExtendedLayout. The default value of that property is the equivalent of wantsFullScreenLayout=YES, and you should be able to set edgesForExtendedLayout to RectEdgesNone to get a similar effect to NO.
--
David Duncan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: iOS 7 - Overriding NSNavigationController
      • From: Dave <email@hidden>
References: 
 >iOS 7 - Overriding NSNavigationController (From: Dave <email@hidden>)
 >Re: iOS 7 - Overriding NSNavigationController (From: David Duncan <email@hidden>)
 >Re: iOS 7 - Overriding NSNavigationController (From: Dave <email@hidden>)

  • Prev by Date: Re: Silent Self-Caught Exceptions vs. "All Exceptions" Breakpoint
  • Next by Date: Re: Silent Self-Caught Exceptions vs. "All Exceptions" Breakpoint
  • Previous by thread: Re: iOS 7 - Overriding NSNavigationController
  • Next by thread: Re: iOS 7 - Overriding NSNavigationController
  • Index(es):
    • Date
    • Thread