Change UIDatePicker font color?

后端 未结 15 1844
南方客
南方客 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:09

    One other alternative to @Jeremiah answer is to define those values in Interface Builder. I prefer this one because there is no code to add in your ViewController.

    Click into your DatePicker view and customise it from the Attribute inspector as in the screenshot. screenshot

    Works for Swift 2, 3, 4 and probably for Swift < 2. (not tested)

提交回复
热议问题