Open UIDatePicker programmatically in iOS 14

后端 未结 9 1542
南笙
南笙 2020-12-23 16:46

I have this normal UIDatePicker (sorry that it\'s not in English, please ignore that):

\"my

9条回答
  •  情歌与酒
    2020-12-23 17:45

    If you want to continue using the wheels format, you can set the style to wheels on the story board,

    or use this code

    datePicker.preferredDatePickerStyle = .wheels
    

提交回复
热议问题