lib/isd-color-palette/view/isd_rgba_slider_view.rb
def didChangeValue sender # IBAction
    case sender
    when UISlider
      @color_value = sender.value
    when UITextField
      @color_value = sender.text.to_f / 255.0
    end
    set_color_value_to_controls
    self.viewController.didChangeColor sender
  end
  def shouldAutorotateToInterfaceOrientation interfaceOrientation
    interfaceOrientation == UIInterfaceOrientationPortrait
  end
def shouldAutorotateToInterfaceOrientation interfaceOrientation
interfaceOrientation == UIInterfaceOrientationPortrait
end
def shouldAutorotateToInterfaceOrientation interfaceOrientation interfaceOrientation == UIInterfaceOrientationPortrait end
def didChangeValue sender 
    case sender
    when UISlider
      @color_value = sender.value
    when UITextField
      @color_value = sender.text.to_f / 255.0
    end
    set_color_value_to_controls
    self.viewController.didChangeColor sender
  end
def didChangeValue sender case sender when UISlider @color_value = sender . value when UITextField @color_value = sender . text . to_f / 255.0 end set_color_value_to_controls self . viewController . didChangeColor sender end
def shouldAutorotateToInterfaceOrientation interfaceOrientation
interfaceOrientation == UIInterfaceOrientationPortrait
end
def shouldAutorotateToInterfaceOrientation interfaceOrientation interfaceOrientation == UIInterfaceOrientationPortrait end
# IBAction
sender