is it possible to send back two parameters when calling a delegate method? I have a delegate I’m trying to set up to return two modified dates back to my parent but I get a syntax error for the second parameter. Is my syntax just wrong or is it not possible?
@protocol PeriodsChangedDelegate <NSObject>
@optional
-(void) periodsChanged: (NSDate *) newTimeStart, (NSDate *) newTimeFinished;
@end
Instead of
write
You dont pass two parameter by using
,you separate them by: