Change UIDatePicker font color?

后端 未结 15 1818
南方客
南方客 2020-12-04 19:12

All I want to do is change the font color of the UIDatePicker. I\'ve researched other questions but they\'re all involving changing other properties and customizing the enti

15条回答
  •  情歌与酒
    2020-12-04 20:01

    According to Apple's UIKit User Interface Catalog, developers are not allowed to customize date pickers.

    I've seen other StackOverflow answers for similar questions that suggest making a fake UIDatePicker using UIPickerView and customizing that.

    I also found an open source date picker on GitHub (at https://github.com/mwermuth/MWDatePicker ) that might help a bit. It allows for different background and selector styles, but not a different font or font attributes.... yet.

提交回复
热议问题