Set text color and font for UIDatePicker in iOS8/Swift

后端 未结 16 2227
囚心锁ツ
囚心锁ツ 2020-12-03 21:02

I\'ve been having trouble trying to set the UIDatePicker font and color. Everything else in my app was fairly straightforward to adjust except

16条回答
  •  囚心锁ツ
    2020-12-03 21:31

    In Xcode 11.5, iOS 13, mode is set automatically, by setting the date picker colors in your storyboard as follows:

    background: systemBackgroundColor text: labelColor

    This results in the following:

    I found that I also had to set the interface style in the simulator settings:

提交回复
热议问题