Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Can you post more of your code? It's unclear from the very small amount of code you've posted what the problem might be. Also, the screenshot of the error is nice, but please post the rest of your code as text, not screenshots.
 
Name your property something else than value.

There is apparently another method with the same name, possibly in your code possibly in the framework headers, with a method of the same name that returns a different type. This causes the compiler some confusion. The solution is to never have methods with the same name that take or return different types.
 
Hey guys...

Thank you for helping me.

I can't seem to rename the property since it's a slider, and can't be ''unlocked'' - very confusing :confused:

Here is more of the code:
Code:
- (IBAction)HundeaarSliderAction:(id)sender {

    float HundeAlder = [(UISlider *)sender value];
    [sender setValue:HundeAlder];
    
    hundeaar.text = [NSString stringWithFormat:@"%d hundeaar", (int)HundeAlder];
    hundeaar.text = [NSString stringWithFormat:@"%d hundeaar", (int)HundeAlder*7];
    
    



}
@end
 
Last edited by a moderator:
Right. You can't change the header for UISlider. So you have added a property with the same name to one of your classes. Change that name.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.