iOS 6&7: Storyboard, master detail ViewController when detailViewController is dynamic
Posted
by
Cam
on Stack Overflow
See other posts from Stack Overflow
or by Cam
Published on 2013-10-24T21:23:00Z
Indexed on
2013/10/24
21:54 UTC
Read the original article
Hit count: 272
I'm building an app for iPhone, I want to use storyboard in XCode to do a simple selection from a tableView (let's call it master table view controller with couple rows) then through navigation it goes to next page and shows a detail view for that selection. I have in my code a base class representing my detailViewController, and have 2-3 driver classes of this base class representing what I want to show in detail view controller in second page, can someone give me an idea how to set destination viewController (detailViewController) dynamically to one of my child class based on the selected row in master view controller using storyboard?
Usually you assign a class to destination class in storyboard for your detail view controller with using segue, but since my destination class could be a different (child class) how you set this in storyboard?
Thank you, Kam
© Stack Overflow or respective owner