Recursive Table Views in Storyboards iOS 4.2?

I don't see any reason why you can't design your storyboard to use the same UITableViewController subclass, to be used recursively. Just design the storyboard as such, then use prepareForSegue: method to pass the selection to the next instance of the controller.

I don't see any reason why you can't design your storyboard to use the same UITableViewController subclass, to be used recursively. Just design the storyboard as such, then use prepareForSegue: method to pass the selection to the next instance of the controller. Have you tried this without success?

What problems did you encounter?

The problem is I can't figure out how to connect the ViewController to itself in Storyboards, so I'm forced to create a second, duplicate ViewController. The first one segues to the second, and the second segues to the first, getting me my recursion. I'd like to avoid that second, duplicate copy (just makes more code in the Storyboard to keep track).

I'll put a screen shot up to show what I've got. Thanks! – Tyler DeWitt Oct 21 '11 at 15:31 You wouldn't connect the view controller to itself.

You'd create two view controllers which use the same subclass (your view controller). So in the identity inspector, you'd change Class to 'YourViewController' name for all the view controllers you want to recurse. – Simon Oct 23 '11 at 15:29 That's what I did.

But now I have to keep the two instances of the view controller in sync (if I add an IBOutlet, I have to be sure to do it to both). Not the end of the world, just a possible place for error later. – Tyler DeWitt Oct 24 '11 at 15:33.

I was trying to do something like this as well. I hooked the Cell Prototype up to the segue by zooming out to a higher level like you have in your screenshot, then right-clicking the cell and dragging down into the TableView. That gave me the usual segue options.

If you expand the Document Outline view on the left side of the Storyboard editor, you can control-drag from the table cell to the same view controller the table cell is in.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions