• 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: UINavigationController in Popover
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UINavigationController in Popover


  • Subject: Re: UINavigationController in Popover
  • From: Matt Neuburg <email@hidden>
  • Date: Fri, 17 Dec 2010 08:49:02 -0800

On Thu, 16 Dec 2010 14:37:00 -0600, Gordon Apple <email@hidden> said:
>I've Googled this and have seen that others have had this problem, but no
>good solutions.  When using a UINavigationController in a popover, where the
>content can be different sizes, the nav controller seems to always wants to
>make the popover full screen height, ignoring popover size settings.  The
>only way I've found to defeat it is to reset the popover size with a 0.5 sec
>delayed invocation.  It works, but it's ugly.  It expands, then contracts to
>the set size.  Is there any better way to do this?  (I'm still on 3.2
>because I want to make sure it works there.)

My experience is that if your navigation controller's root view controller supplies its own popover size in contentSizeForViewInPopover, the navigation controller does exactly the right thing - it expands that size to allow for its own nav bar, and passes this on up to the popover controller, which sizes the popover correctly. (If you're not seeing that, it may be because you're testing under 3.2; I have no idea.) m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________

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: UINavigationController in Popover
      • From: Gordon Apple <email@hidden>
  • Prev by Date: Re: Layer hosting views, geometryFlipped, and subviews
  • Next by Date: List Help
  • Previous by thread: UINavigationController in Popover
  • Next by thread: Re: UINavigationController in Popover
  • Index(es):
    • Date
    • Thread