Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the picker pop up at the top , how can pop up at center #68

Open
sarakhater opened this issue Mar 18, 2021 · 4 comments
Open

the picker pop up at the top , how can pop up at center #68

sarakhater opened this issue Mar 18, 2021 · 4 comments

Comments

@sarakhater
Copy link

I have an issue with when the text field showing the picker at the end of the view controller and my view controller is very tall.
the picker is popping up at top of the view controller but the text field at the bottom.
Is there any way to pop up the picker at the center of the view controller, not at the top?

@chenzeyu
Copy link
Owner

Can you please share your sample code and screenshot?

@sarakhater
Copy link
Author

Simulator Screen Shot - iPhone 11 - 2021-03-21 at 09 49 43

@sarakhater
Copy link
Author

any solution?

@sarakhater
Copy link
Author

@objc func showGenderPicker(gesture :UITapGestureRecognizer ){
self.view.endEditing(true)
genderPicker?.show(inContainer: self.view)

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants