I can't get this working. If I drop the master UITableView to use Static cells I can get the segues working, such that when you click on a row in the master it automatically pushes the Child controller on. But with 'dynamic prototype' cells, I click on one of the cells and nothing happens...
Am I supposed to programmatically push the child controller within the prepareForSegue
method or something? In which case I'm not sure what advantage a segue here would have over the old way of just using
No, you don't have to manually push the child controller. Did you connect a segue in your storyboard file from the dynamic cell to the child controller? Also did you give your dynamic cells an identifier? You can also check out this tutorial:
http://maniacdev.com/ios-5-sdk-tutorial-and-guide/xcode-4-storyboard/
Scroll down to "Beginning iOS storyboards" and have a look at part 1 and part 2. I found them most helpful.
Use prepareForSugue:
instead, [table indexPathForSelectedRow prepareForSugue
will be called before the next scene's loadView
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With