I know method in Objective-C as defined as below:
But I am not sure what is the method name as below code, I thought method name should be numberOfRowsInSection and return type is (NSInteger), but I am in confuse about tableView
UITableView *)tableView, what are they?
Code:
- (void) classMethod: (int) first secondArgument:(int) second;
[B]-[/B]= Method type
[B](void)[/B]= return type
[B]classMethod[/B]= method name
[B](int)[/B]= first argument type
[B]first[/B]= first argument name
[B]secondArgument:[/B]= second argument label
[B](int)[/B]= second argument type
[B]second[/B]= second argument
But I am not sure what is the method name as below code, I thought method name should be numberOfRowsInSection and return type is (NSInteger), but I am in confuse about tableView
Code:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
// Return the number of time zone names.
return [timeZoneNames count];
}