Odd Error, Or I'm Just Newbish

Discussion in 'iPhone/iPad Programming' started by TheKrillr, Jul 13, 2008.

  1. macrumors member

    Joined:
    Aug 26, 2006
    #1
    Code:
    - (IBAction)syncSliders:(id)sender {
    	[slider2 setValue:[slider1 value]];
    }
    I get told that is an incompatible type for setValue. Any ideas?
     
  2. macrumors 6502

    Joined:
    Apr 28, 2008
    #2
    Is it because you need to supply the animated parameter as well? The signature for setValue according to the documentation takes in the float, which you're supplying correctly, you just need to supply whether you want the value change to be animated or not.
     

Share This Page