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
Time ago I found another problem that somehow resembles this one. It was about presenting a view controller from within the tableView:didSelectRowAtIndexPath:
and the problem was that it was taking lots of time for the new controller to actually show up. One of the workarounds turned out to be using dispatch_async
on the main queue. The same worked for me in this case.
In my viewDidLoad
, I asynchronously dispatched the picker setup code on the main queue and, in my case, it started to respond to the valueChanged
event even on the first pick:
DispatchQueue.main.async {
self.pickerView.datePickerMode = .countDownTimer
self.pickerView.minuteInterval = 5
self.pickerView.countDownDuration = 15
}