Can a UIPickerView load a specific .nib/.xib file from code or UI Interface Designer? Or is there something else I need to use? I’ve been Googling around for a tutorial on how to do this, and everything I’ve found so far has been using static content examples (such as colors, countries, dates, etc.) which are meant to be selected, but not necessarily transitioned to from one place to another.
Can a UIPickerView load a specific .nib / .xib file from code or UI
Share
Create a NSDictionary with user selectable strings as keys and then strings of the name of the class/nib you want to instantiate.
When the user selects an option, then you can pull out the code name, and then load the appropriate bundle.
If instead you wanted to open a view controller, you could: