Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Storyboard example #29

merged 10 commits into from Aug 16, 2012


None yet
4 participants

burtlo commented Mar 27, 2012

I wanted to use your awesome StackedView in a storyboard environment. This required a little more work to get started. I am proposing this changes but please do not feel you need to accept them into the project. I was hoping to learn a little more about the project and see what you thought of how one would integrate with your codebase.

Storyboards were a little tricky at first as you cannot define a container relationship like you do for Navigational Controllers and Tab Bar Controllers. So tucked into the Stacked View Controller on the storyboard is an Object, which is the class that is set up as the RootViewController.

  • RootViewController property is now readwrite and IBOutlet
  • Additional init methods init and initWithCoder were necessary to work with the storyboard
  • The majority of the initialization code was moved into a method within the class as there was some problem with attempting to call [self init] when the code existed in that init method.

burtlo added some commits Mar 27, 2012

@burtlo burtlo Initial commit for a storyboard example 11b8546
@burtlo burtlo RootViewController writable and shared initialization
  I could not get [self init] to work so each of the initializers
  call [super init] and then currently have a shared initialization
  to get the ball rolling
@burtlo burtlo Storyboard StackControler with RootView Object e538832
@burtlo burtlo RootViewController setter creates relationship a1385fd
@burtlo burtlo InitWithCoder required initialization dea7cf3
@burtlo burtlo RGB Test View Controllers b90d6dd
@burtlo burtlo Minor typos and misspellings 6946f36
@burtlo burtlo Pragma Mark Initialization e7ca9c6
@burtlo burtlo Storyboard - Back Button
 Illustratrating a paging back feature on the view controllers
@burtlo burtlo More stack navigation flow
  Instead of continually adding to the end this illustrates adding
  a view controller next to the current view controller.

burtlo commented Mar 27, 2012

Also important to note, this quick example was designed explicitly for the iPhone version.

@steipete steipete added a commit that referenced this pull request Aug 16, 2012

@steipete steipete Merge pull request #29 from burtlo/storyboard-example
Add Storyboard example

@steipete steipete merged commit 1cc8e24 into steipete:master Aug 16, 2012


steipete commented Aug 16, 2012

Thank you for this! I got super busy working on http://pspdfkit.com/ and neglected my open source projects a bit, but finally came around merging this. works great!


burtlo commented Sep 13, 2012

Awesome. :)

Hi guys:

I'm feeling like a complete noob here but whenever I drag a UIViewController in my existing storyboard and then change it's type to a PSStackedViewController, I'm unable to Cntrl-Drag to create an outlet link for the PSStckedViewControllers rootViewController outlet. I see the blue line but whenever I hover over any of my existing UIViewControllers it wont let me choose it.

Been looking at this for hours now, haven't really used storyboards until now but this is driving me crazy. I'm sure it's something stupid but I would greatly appreciate any help.


steipete commented Oct 11, 2012

I haven't tried that yet - maybe @burtlo can help.

Anyone figure out how to connect up the rootViewController outlet from a Storyboard?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment