How do I pop up a UIPickerView (which is not on the screen) with a button click? I can't find any sources online which do this.
Follow these steps...
create a UIView in a view controller in the main.storyboard file and add a UIPicker view inside it.
connect the view and the picker view to the viewController.swift with a IBOutlet
in the ViewDidLoad method, hide the the uiview we created.
when the button is clicked, unhide the uiview you created, and get the user input.
Here is an example...