RE: iOS5 development
I currently have a large Storyboard-web of View Controllers that all inherit the same basic class, using different images/titles for differentiation.
An example would be:
10 different VCs with the same root class, spread across a storyboard. The user ‘favourites’ two of these VCs into a favourite (mutable)array.
This array takes the value of the favourited VCs’ titles and is loaded up into a table view.
Is there a way of associating a VC title with some sort of tag that can be used to segue to the relevant VC from the table view cell selection?
In short, is there a way of assigning IDs (similar to tags) for VCs that can then be linked to a dictionary/array of each VC’s name so that a user can select such a title within a table and be segued to the relevant VC?
NOTE: the table view is a XIB, with the VCs in question being storyboarded
When you select a VC in IB, open up the attributes inspector. In there you will see under the general “View Controller” tag there is a field for “Identifier” it is this string that you can use to instantiate from the code via: