• 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
Can't seem to present modal storyboard scene
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't seem to present modal storyboard scene


  • Subject: Can't seem to present modal storyboard scene
  • From: Rick Mann <email@hidden>
  • Date: Tue, 20 Nov 2012 21:55:01 -0800

Hi. I've got a part of my storyboard that has a UINavigationController and a UIViewController in that. It's triggered by tapping a button with a modal segue.

But I also want to display it sometimes at application start (it's release notes). So, I do this:

	UIStoryboard* sb = [UIStoryboard storyboardWithName: @"MainStoryboard" bundle: nil];
	UINavigationController* nc = (UINavigationController*) [sb instantiateViewControllerWithIdentifier: @"releaseNotes"];
	ReleaseNotesController* controller = [nc.viewControllers objectAtIndex: 0];
	controller.delegate = self;
	[self.window.rootViewController presentModalViewController: nc animated: true];

All the controllers come back with good values, and are the right class. But nothing ever shows up. The rootViewController is a tab bar controller, and it does show up.

Is there something I'm missing?

Thanks!

--
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: enhancing NSTextView for optionally-hidden text
  • Next by Date: Re: Getting a .icns file from IconRef data
  • Previous by thread: Re: enhancing NSTextView for optionally-hidden text
  • Next by thread: NSTableView animation parameters
  • Index(es):
    • Date
    • Thread