How to add date picker to UIAlertController(UIAlertView) in Swift?

10,698

Do not use any kind of UIAlertView or UIAlertController. Make your own view and pop it up (using, probably, a presented view controller). The view can be small, like an date picker, and you can put a shadow view behind it, like an alert does.

Share:
10,698
Srujan Simha
Author by

Srujan Simha

Updated on June 05, 2022

Comments

  • Srujan Simha
    Srujan Simha almost 2 years

    I have an application in which I need to display a popup to pick a date and write that date back to the view controller.

    I have searched online a lot but wasn't successful in finding out a relevant solution.

    Any kind of help is much appreciated.