• 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: Hide UINavigationBar and keep UIPageController content static
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hide UINavigationBar and keep UIPageController content static


  • Subject: Re: Hide UINavigationBar and keep UIPageController content static
  • From: David Duncan <email@hidden>
  • Date: Sun, 25 Oct 2015 10:09:38 -0700

> On Oct 24, 2015, at 10:23 AM, Kyle Sluder <email@hidden> wrote:
>
> On Tue, Oct 20, 2015, at 11:21 AM, Stevo Brock wrote:
>> The trick is, if in the storyboard, on the UIPageController, I set the
>> “Under Top Bars” to yes, my custom view draws full screen.  But when I
>> toggle the navigationBarHidden, the custom view and its superview scroll
>> up and down the size of the navigation bar.
>
> This sounds like it might be a bug in automatic content inset
> adjustment. Please file a Radar with a sample project.
>
> In the meantime, you can try turning off
> automaticallyAdjustsScrollViewInsets on your view controller and
> managing layout manually (relative to the view controller's
> topLayoutGuide) in an override of -viewDidLayoutSubviews.
>
>>
>>
>> Alternatively, if in the storyboard, on the UIPageController, I set the
>> “Under Top Bars” to no, my custom view draws in the screen space under
>> the navigation bar.  When I toggle the navigationBarHidden, the view
>> stretches to fill the full height of the screen, but I never get a redraw
>> call, so the drawing is stretched.
>
> This is expected. Views that need to redraw when they change size should
> override -setBounds: to call [self setNeedsDisplay].

If you need to redraw on bounds change, change the contentMode to Redraw. Overriding -setBounds: is insufficient and unnecessary.

>
> --Kyle Sluder
>
> _______________________________________________
>
> 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


  • Follow-Ups:
    • Re: Hide UINavigationBar and keep UIPageController content static
      • From: Stevo Brock <email@hidden>
References: 
 >Hide UINavigationBar and keep UIPageController content static (From: Stevo Brock <email@hidden>)
 >Re: Hide UINavigationBar and keep UIPageController content static (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSSplitView in a separate NSWindowControl doesn't show for some reason
  • Next by Date: Re: Updated View Bounds After Orientation Change...
  • Previous by thread: Re: Hide UINavigationBar and keep UIPageController content static
  • Next by thread: Re: Hide UINavigationBar and keep UIPageController content static
  • Index(es):
    • Date
    • Thread