Change UIDatePicker font color?

后端 未结 15 1817
南方客
南方客 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 19:51

    For Xamarin developers:

    DatePicker.SetValueForKey(UIColor.White, new NSString("textColor"));
    DatePicker.SetValueForKey(FromObject(false), new NSString("highlightsToday"));
    

    It´s working like a charm. Tested in iOS 9 and 10

提交回复
热议问题