Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Please explain this Objective-C function definition

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

I am confused about what's the function name and what are the parameters? Please break it down for me.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Pra4444
Pra4444
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

So let me try and you correct me:

1) - specifies it's an instance method, versus a class method

2) The two method signatures are tableView:cellForRowAtIndexPath:

3) The two local variables defined are tableView and indexPath

I guess I was confused because there is no method name. But I guess the two signatures give the resolution needed by the object to exactly match this code.

Correct me if I am wrong.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.