I would like to create a PickerViewer that has a “go” button next to it to go to the specific View controller that i have chosen in the Picker View selection.
So the "subject i choos has to be linked to the “Go” button, and this changes every time i chose a new item from the PickeViewer.
Is that even possible? if not could this be possible with a tableView intsead? if not can soemone pleas suggest another solution?
I just did a quick Illustration to show what it is i would like.
Thanks Mikeala
I am a complete newbee to this, have you come across a tutorial that resembles this? where Picker viewer and go button?
I have only com across Picker viewer YouTube, i just need the last bit
Best of luck! Post here again with what you’ve found and if it works or not! It could help someone else
And yes I’m purposefully not giving you the exact answer. Being able to figure out what you need to search, to do what you’re trying to do is a skill itself!
I have searched google for into “how to navigate to a different view controller” but i am not coming across any, yet, that have to do with UIPickeView.
I know how to create a button to go to another view controller, so far so good;)
But to go from a “text” that i choose from my list in a UIPickeView to a specific view controller from a “GO” button is quite different. As the UIPickeView is dynamic , but the go button is static - in my logic.
The same “GO” button needs to know which view controller it should go to if you choose 1, 2 or 3 in the UIPickerViewer.
I have tried to illustrate it, in my very quick drawings.
Maybe i need to make a tableView instead o fthe UIPickerViewer?
You just need to look at the current value of the picker when the user taps on the Go button and move to the appropriate view controller based on that value.
I don’t know of any tutorial that will show you how to do that, specifically, but I mean… any basic UIKit tutorial will give you the info you need to figure out for yourself how to do it.