I have in my Picker
class:
- (id)initWithFrame:(CGRect)frame withSender:(id)sender withDate:(NSDate*)date {
if ((self = [super initWithFrame:frame])) {
datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 0 , 0, 0)];
datePicker.date = date;
[sender changeDate:self.datePicker];
datePicker.date = date;
}
And in the sender class:
- (void)changeDate:(id)sender {
//some code
}
Both the methods are also declared in the .h files.
But when i compile, even if everything is working well, xCode tells me :
no '-changeDate:' method found
referring to the line [sender changeDate:self.datePicker];
What can i do to make this disappear? Thanks!