Set text color and font for UIDatePicker in iOS8/Swift

后端 未结 16 2198
囚心锁ツ
囚心锁ツ 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条回答
  •  萌比男神i
    2020-12-03 21:16

    I saw the issue you were having and was having a similar issue. Using Xcode 6.3.1 I used this code in mine and worked great:

    myPicker.backgroundColor = UIColor.whiteColor()
    

    In case this helps.

提交回复
热议问题