Sha256: 2e3a3beac08b17abca2ac163b823ea3f1b77ca9239af3eb1bd9dbc64e1a231d4

Contents?: true

Size: 454 Bytes

Versions: 6

Compression:

Stored size: 454 Bytes

Contents

module Formotion
  module RowType
    module MultiChoiceRow

    def build_cell(cell)
      field = super(cell)
      field.clearButtonMode = UITextFieldViewModeNever
      field.swizzle(:caretRectForPosition) do
        def caretRectForPosition(position)
          CGRectZero
        end
      end
      field
    end

    def add_callbacks(field)
      super
      field.should_change? do |text_field|
        false
      end
    end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
formotion-1.8 lib/formotion/row_type/multi_choice_row.rb
formotion-1.7 lib/formotion/row_type/multi_choice_row.rb
formotion-1.6 lib/formotion/row_type/multi_choice_row.rb
formotion-1.5.1 lib/formotion/row_type/multi_choice_row.rb
formotion-1.5.0 lib/formotion/row_type/multi_choice_row.rb
formotion-1.4.0 lib/formotion/row_type/multi_choice_row.rb