def update_ui_field_style
      @ui_field.secureTextEntry=@options[:type]==:password
      @ui_field.autocorrectionType = get_auto_correct_type(@options[:auto_correct])
      @ui_field.autocapitalizationType = get_auto_capitalize_type(@options[:auto_capitalize])
      @ui_field.keyboardType = get_keyboard_type(@options[:keyboard])
      @ui_field.enabled = @options[:type] != :label


      text_view_toolbar = PlasticCup::Base.style(UIToolbar.new, frame: CGRectMake(0,0,320,44))
      done_button = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemDone, target: self, action: 'did_return:')

      text_view_toolbar.items=[
          UIBarButtonItem.flexible_space, done_button
      ]
      @ui_field.inputAccessoryView = text_view_toolbar

    end
def update_ui_field_style
      @ui_field.secureTextEntry=@options[:type]==:password
      @ui_field.autocorrectionType = get_auto_correct_type(@options[:auto_correct])
      @ui_field.autocapitalizationType = get_auto_capitalize_type(@options[:auto_capitalize])
      @ui_field.keyboardType = get_keyboard_type(@options[:keyboard])
      @ui_field.enabled = @options[:type] != :label


      text_view_toolbar = PlasticCup::Base.style(UIToolbar.new, frame: CGRectMake(0,0,320,44))
      done_button = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemDone, target: self, action: 'did_return:')

      text_view_toolbar.items=[
          UIBarButtonItem.flexible_space, done_button
      ]
      @ui_field.inputAccessoryView = text_view_toolbar

    end
options
 type:
   :password
   :label

 auto_correct:
   true
   false
   UITextAutocorrectionType

 auto_capitalize:
   true
   false
   UITextAutocapitalizationType

 keyboard:
   :decimal
   uikeyboardtype (sugarcube)
   UIKeyboardType

 precision: Numeric (only useful when value is Numeric)
            default:
              Integer: 0
              Float:   6

 error:
   true
   false

 reduce_font_size:
   true
   false