我在我的 TableView 中设置了我所有的标题部分。
稍后,我需要在任何部分的表格视图中获取标题的值,
我怎样才能直接向 UITableView 询问这些值?
没有委托协议:
    [self tableView:tableView titleForHeaderInSection:i]
因为这个方法覆盖了我自己类的一个协议。
- (NSString *) tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
 {
     /* If datasource methdod is implemented, get´s the name of sections*/
     SEL nameForSection = @selector(nameForSection:);
    if ( (self.dataSource) && [self.dataSource respondsToSelector:nameForSection] )
    {
       NSString *titleSection = [self.dataSource nameForSection:section];
       return titleSection;
   }
return nil;
}
感谢提前...