UIDatePicker无法在iOS 9中正确显示 [英] UIDatePicker not displaying properly in iOS 9

查看:57
本文介绍了UIDatePicker无法在iOS 9中正确显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有使用自动布局,这就是UIDatePicker在iOS 9上的应用程序中出现的方式.选择器在iOS 8中看起来没有问题,但问题仅在iOS 9上.任何想法都可以解决..( PS对我而言暂时没有解决方案,使用自动布局.)

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.)

推荐答案

在viewDidLoad()方法中,更改日期选择器的属性,例如模式.请注意,您不必保留任何更改,可以将其设置为任何内容,然后再将其更改回您想要的内容.

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.

这篇关于UIDatePicker无法在iOS 9中正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆