Possible Duplicate:
Method Syntax in Objective C
I’m quite new to iPhone development and I’m confused about the method declaration iPhone development using X-code
Please help me identify what is the name of the method here.
tableView or willSelectRowAtIndexPath
Please explain how did you recognize it. Thanks in advance.
-(NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSUInteger row = [indexPath row];
if (row == 0) return nil;
return indexPath;
}
The method signature is
tableView:willSelectRowAtIndexPath:. Here you can read about method names in Objective C – http://cocoawithlove.com/2009/06/method-names-in-objective-c.html Ask more if you’re unsure why and what’s going on here.