I have a couple of inputScreens where user presses a button which currently opens another pickerScreen with a picker and several buttons on it.
Instead of showing the pickerScreen as a complete new screen that totally covers the inputScreens I would like the pickerScreen to show on top of the inputScreen –
like a smaller screen centered and graying out and making inaccessible
the underlyinginputScreenas long as thepickerScreenis shown.
Currently inputScreens and pickerScreen are implemented with UIViewController. …and the pickerScreen totally replaces the inputScreen.
Is there an easy way to just change the pickerScreen so it appears on top of the inputScreens?
Many thanks
Make a UIView with the picker view on it having the size as u desired.and hide that view in the view DidLoad.and when The desired button is pressed unhide that view.Then hide it after all your needs.it’s so simple.otherwise adjust the size of the Pickerview as desired.`
add the picker like this.
`