iOS9: UIDatePicker with datePickerMode of UIDatePickerModeTime only shows Hours, and no Minutes

后端 未结 6 1765
暗喜
暗喜 2021-02-14 07:13

I\'m using Xcode beta 7 with the iOS9 simulator. Using a UIDatePicker with a datePickerMode of UIDatePickerModeTime only shows Hours, and not minutes.

See screenshot:

6条回答
  •  爱一瞬间的悲伤
    2021-02-14 07:58

    @LordParsley solution did the trick.

    Just some additional details:

    I notice it occurs on iPhone 5 series and not on iPhone 6/6 plus with leading and trailing constraints. Apparently the bug only appears when its frame width is 320. Probably its a miscalculation of picker subviews that causes the overlaps. This is quite funny because Apple is the one who set the default value and yet they've oversaw the issue.

    Anyways I hope this gets resolved with iOS 9.1 which is now in beta.

提交回复
热议问题