Possible Duplicate:
Methods with multiple arguments in objective C
I’m very new to Objective-C I was learning the language by following tutorials online, In one particular tutorial colons(:) used after one another in a method header.
Here’s what I’m talking about:
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
Can anyone tell me what this method’s header represents?
Here’s the tutorial: http://www.appcoda.com/how-to-get-current-location-iphone-user/
I’m a C++ programmer so if you can explain it to me by writing the same code in C++ that would be really helpful.
Thanks!
The above method is taking 3 aruguments as manager, newLocation, oldLocation of type CLLocationManager, CLLocation, CLLocation respectively.
In C++ or C, it would be something like this :