swift - iOS UIDatePicker timezone causes disabled spinner(s) -
i have uidatepicker set timezone nstimezone(forsecondsfromgmt: seconds). reason time on uidatepicker gets disabled first time set new date, after switch mode .date works again.
how can make 1 work always? if don't set timezone time never gets disabled, need set time zone on.
here code set, newdate nsdate , adjustment seconds.
self.timepicker.timezone = nstimezone(forsecondsfromgmt: adjustment) self.timepicker.setdate(newdate, animated: false)

Comments
Post a Comment