I am currently studying some of the objective-c from the great ranch guide. I understand that methods with multiple parameters use colons to separate each parameter, but reading about creating arrays, I found this piece of code:
NSArray *dateList = [NSArray arrayWithObjects:now, tomorrow, yesterday, nil];
This confused me, because I thought that the parameters of the objective-c method should be preceded by a part of the method name along with a colon. Can someone explain this to me?
source
share