Re: iOS 7 - Overriding NSNavigationController
Re: iOS 7 - Overriding NSNavigationController
- Subject: Re: iOS 7 - Overriding NSNavigationController
- From: Dave <email@hidden>
- Date: Sat, 21 Sep 2013 13:14:24 +0100
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?
> 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.
All the Best
Dave
> On Sep 20, 2013, at 2:00 AM, Dave <email@hidden> wrote:
>
>> Hi,
>>
>> I've been trying to figure out why the App I am working looks really awful under iOS 7 and have found the main culprit. It tuns out that the Apps Navigation Controller uses a subclass of NSNavigationController and overrides "wantsFullScreenLayout" which always returns NO, e.g.
>>
>> -(BOOL) wantsFullScreenLayout
>> {
>> return NO; //Never Allow Fullscreen
>> }
>>
>> If I remove this, the apps looks a lot better most places BUT some of the ViewControllers/Views don't look at all right now! I'm wondering what effect the original engineer was getting by forcing wantsFullScreenLayout to be always NO?
>>
>> Thanks a lot
>> Dave
>>
>> _______________________________________________
>>
>> 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
>
> --
> 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