• 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: UINavigationBar content margins in UIPresentationController subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UINavigationBar content margins in UIPresentationController subclass


  • Subject: Re: UINavigationBar content margins in UIPresentationController subclass
  • From: Daniel Stenmark <email@hidden>
  • Date: Wed, 07 Dec 2016 19:22:09 +0000
  • Thread-topic: UINavigationBar content margins in UIPresentationController subclass

The most relevant looking bug I can find seems to involve pushing & popping view controllers. That said, setting the preferredContentSize on the navigation controller directly should always work.

Setting preferredContentSize directly on the navigation controller works as expected.  I’m more referring to the ability for navigation controllers to catch the preferredContentSize changes of their child controllers, and then use that observed size to automatically update their own preferredContentSize (which I’d expect would just add the height of the navigation controller’s UINavigationBar to the child’s observed size).  Is that expected to work (i.e. is there currently a bug), or is the current lack of preferredContentSize forwarding by design?

Alternatively you could use your own container view controller instead.

Hmm, interesting.  Are you suggesting that the presentation controller have view controller property, add the view controller’s root view to the presentation controller’s container view, and then do all the presentation work in the view controller’s root view?

Dan
_______________________________________________

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: UINavigationBar content margins in UIPresentationController subclass
      • From: David Duncan <email@hidden>
References: 
 >UINavigationBar content margins in UIPresentationController subclass (From: Daniel Stenmark <email@hidden>)
 >Re: UINavigationBar content margins in UIPresentationController subclass (From: David Duncan <email@hidden>)
 >Re: UINavigationBar content margins in UIPresentationController subclass (From: Daniel Stenmark <email@hidden>)
 >Re: UINavigationBar content margins in UIPresentationController subclass (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Elementary NSUserDefaults Question
  • Next by Date: Re: Elementary NSUserDefaults Question
  • Previous by thread: Re: UINavigationBar content margins in UIPresentationController subclass
  • Next by thread: Re: UINavigationBar content margins in UIPresentationController subclass
  • Index(es):
    • Date
    • Thread