title: How do I call a IBAction method from within another method
body: <p>Hi I am trying to call a method from a method, I am getting incompatible type for slider changed on the code where I am calling the method from:</p>
  
  <pre><code>[self EVsliderChanged: (float)EVslider.value ];
  </code></pre>
  
  <p>I assume that means that float is not the right type for uislider.value? or perhaps it is expecting me to pass it something different, bellow is the psudo code from .m :</p>
  
  <pre><code>- (IBAction) EVsliderChanged:(UISlider *)sender {  
      // code I want to run if either EVSliderChanded or PickerView changes
  }
  
  - (void)pickerView:(UIPickerView *)secPicker didSelectRow:(NSInteger)row inComponent (NSInteger)component { 
   [self EVsliderChanged: (float)EVslider.value ];
  }
  </code></pre>
  
  <p>I'm sure I'm doing something n00bishly wrong, could someone please explain whats going wrong and give me an example of how to do it right.</p>
  
  <p>Thanks</p>