Change UIDatePicker TextColor in iOS10

后端 未结 3 557
逝去的感伤
逝去的感伤 2021-01-14 18:24

I had a method of changing the UIDatePicker\'s text color on versions of iOS before 10, but with iOS10 those solutions no longer appear to work. How could I res

3条回答
  •  旧巷少年郎
    2021-01-14 18:58

    The code you're using is setting a private property of the UIDatePicker. That's the danger of using a private property. There's no guarantee that it will work in the next OS version.

    If Apple detected what you were doing they would have rejected your app.

    Unless there is a public interface for doing this, you may be out of luck. (And I'm not aware of a public interface for changing the text color of a date picker.)

提交回复
热议问题