I'm trying to learn Objective-C, but there is one thing I do not really get a grip on.
I understand that if one writes:
it is a pointer to NSString object.
But why do you write the star inside the brackets when you write:
Why not write:
I understand that if one writes:
Code:
NSString *name;
But why do you write the star inside the brackets when you write:
Code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
Why not write:
Code:
- (UITableViewCell)*tableView