UIDatePicker not displaying properly in iOS 9

2019-06-24 02:37发布

I am NOT using auto layouts and this is how the UIDatePicker is appearing in my app on iOS 9. The picker is looking flawless in iOS 8 but the problem is only with iOS 9. Any idea how to resolve this.. (P.S using auto layouts in not a solution at the moment for me.)

enter image description here

1条回答
来,给爷笑一个
2楼-- · 2019-06-24 03:09

In the viewDidLoad() method, change a property of the date picker, for example the mode. Note that, You don't have to leave it changed, you can set it to anything and then change it back to what you actually want.

I am sure, this solution is helps you.

查看更多
登录 后发表回答