TableView的方法说明
//得到有多少个区-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;//计算特定分区中行数-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;//从索引路径获取分区和行,用来确定使用哪个值-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;//得到每个分区的标题值,可以自定义,这里得到分区名-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section;//添加索引- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView;//点击一个cell- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {//设置行高-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath//此方法将缩进级别设置为行号,返回缩进数字-(NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath;//返回每一行,在这里可以对行数据进行处理-(NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath;//每一行都显示一个展示按钮-(UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath{return UITableViewCellAccessoryDisclosureIndicator;}