UIDatePicker bug? UIControlEventValueChanged after hitting minimum internal

后端 未结 7 682
星月不相逢
星月不相逢 2020-12-08 05:21

I\'ve run into a weird effect that sure looks like a bug in iOS7 -- but often in the past, when I have thought I found a bug in Apple\'s APIs, it has turned out to be my own

7条回答
  •  渐次进展
    2020-12-08 05:31

    Since no answer has been accepted yet. The simplest solution that worked for me in swift 3 is to simply do

    datePicker.countDownDuration = seconds

    in viewDidAppear instead of viewDidLoad

提交回复
热议问题