• 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
Storyboard UISplitViewController difficulty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Storyboard UISplitViewController difficulty


  • Subject: Storyboard UISplitViewController difficulty
  • From: Rick Mann <email@hidden>
  • Date: Thu, 15 Nov 2012 22:27:31 -0800

Oops, forgot my question:

How can I work around this problem? I need to install the popover button item, but I don't have it.

I tried setting the delegate in IB, given that it's all visible in the storyboard, but it won't let me set the split view delegate across scenes.

---

It seems that when using storyboards, UISplitViewController gets loaded and calls its delegate before the related view controllers even get loaded. I'm trying to set my right-side view controller as the delegate in its -viewDidLoad, but at this point it's too late, and the willHide delegate method is not called, and consequently the popover button is not installed.

Really, the related view controllers' -viewDidLoad methods should be called before the split view controller's -willAppear (which is what triggers the call to the delegate method). Barring that, the split controller should call the willHide delegate method should only be called after the related view controllers have loaded.

--
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

  • Prev by Date: Storyboard UISplitViewController difficulty
  • Next by Date: Table view cell getting deselected in popover
  • Previous by thread: Storyboard UISplitViewController difficulty
  • Next by thread: Table view cell getting deselected in popover
  • Index(es):
    • Date
    • Thread