Method: Formotion::RowType::DateRow#after_build

Defined in:
lib/formotion/row_type/date_row.rb

#after_build(cell) ⇒ Object



41
42
43
44
45
46
47
48
49
50
# File 'lib/formotion/row_type/date_row.rb', line 41

def after_build(cell)
  self.row.text_field.inputView = self.picker
  # work around an iOS7 bug: http://bit.ly/KcwKSv
  if row.picker_mode == :countdown
    self.picker.setDate(self.picker.date, animated:true)
    picker.countDownDuration = self.row.value.to_f
  end

  update
end