• 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: Bugs with parentViewController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bugs with parentViewController?


  • Subject: Re: Bugs with parentViewController?
  • From: Rick Mann <email@hidden>
  • Date: Fri, 16 Nov 2012 21:36:52 -0800

On a lark, I decided to take a look at the childViewControllers in my SVC subclass (that I created to work around another issue). They were populated. So I investigated further. Seems the parentViewController is not nil any more. WTF.

Updates as events warrant.

--
Rick

On Nov 16, 2012, at 17:04 , Fritz Anderson <email@hidden> wrote:

> On 16 Nov 2012, at 4:14 PM, Rick Mann <email@hidden> wrote:
>
>> I'm finding that parentViewController is nil for all the UINavigationControllers embedded in my hierarchy (via storyboard). In my case, they're embedded in UISplitViewControllers.
>>
>> I wrote bugs about this, but I wanted to check to see if others are seeing that, or if I've failed to do something properly.
>
> Are you sure UISplitViewController is a parent controller, and not a presenting controller? As of iOS 5, a presented controller will return nil for the parent (if there is no parent), instead of the presenting controller, as it had before. It may be you're looking for .presentingViewController. Try it.
>
> 	— F
>
> --
> Fritz Anderson -- Xcode 4 Unleashed: 4.5 supplement in the works -- <http://x4u.manoverboard.org/>
>


--
Rick




_______________________________________________

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


References: 
 >Bugs with parentViewController? (From: Rick Mann <email@hidden>)
 >Re: Bugs with parentViewController? (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Getting a .icns file from IconRef data
  • Next by Date: Re: Bugs with parentViewController?
  • Previous by thread: Re: Bugs with parentViewController?
  • Next by thread: Re: Bugs with parentViewController?
  • Index(es):
    • Date
    • Thread