UIDatePicker bug? UIControlEventValueChanged after hitting minimum internal

后端 未结 7 677
星月不相逢
星月不相逢 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:37

    If someone still having problems with datepicker... I'm using Swift / iOS 8 / Xcode 6.3

    So solve the problem you should no use

    picker.countDownDuration = NSTimeInterval
    

    instead, use setDate

    picker.setDate(NSDate, animated: true)
    

    it works direct on viewDidLoad(), don't need to use `queues

提交回复
热议问题