I'm trying to learn objective-c, and have a question regarding this method:
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
}
According to the documentation, the method name is tableView:cellForRowAtIndexPath:, and it takes 2 parameters, the table view and the index path. It returns a pointer to a UITableViewCell.
So, the (UITableViewCell *) represents the return type, but what I don't understand is why the tv parameter occurs before the cellForRowAtIndexPath method name. It looks to me like what we have here is return type, then param1, then method name, then param2.
I'm really still trying to get an understanding of basic objective-c syntax so any help is appreciated. Thanks.
