UIDate Picker valuechanged does not update the first spin, but does every spin after.. iOS

前端 未结 8 2184
野的像风
野的像风 2021-02-12 14:37

I have a UIDate Picker embedded in a static TableViewCell and at the moment I disabled most of the code except the code responsible for the date picker.

I\'m using t

8条回答
  •  忘掉有多难
    2021-02-12 15:33

    Similar problem as above, I used

    DispatchQueue.main.asyncAfter(deadline: .now()) {
       self.datePicker.countDownDuration = 60
    }
    

    to put it on the next runloop. Seems a viable workaround.

提交回复
热议问题