<分区>
Possible Duplicate:
Method Syntax in Objective C
所以我完全得到了更常见的功能,例如:
-(void)viewDidUnload{
self.controllers = nil;
[super viewDidUnload];
}
但是来自不同的编程背景,我有时会遇到这样的问题:
-(NSInteger) tableView: (UITableView *)tableView
numberOfRowsInSection:(NSInteger)section{
return [self.controllers count];
}
所以我知道函数返回一个 NSInteger。但是,我确实对如何在头脑中组织函数名称 ETC 的其余部分感到有点困惑。我需要能够形象化一些结构。就像在这种情况下,函数名称 numberOfRowsInSection 的参数称为 section 吗?
在此问题上的帮助将不胜感激。