UITableView:如何删除索引?

dhr*_*hrm 4 cocoa-touch objective-c uitableview

我一直在玩教程Core Data Tutorial:如何使用NSFetchedResultsController.如果我添加一个sectionNameKeyPath,NSFetchedREsultsController我会得到一个像这样的`UITableView:在此输入图像描述

当我提供它时,sectionNameKayPath它会在视图的右侧创建一个索引.在我的申请中,章节标题是"星期日11月12日","星期六10月12日"等日期.这些值不适合这样的索引.如何从'UITableView'中删除索引

jrt*_*ton 9

只需删除的实现sectionIndexTitlesForTableView:,并tableView:sectionForSectionIndexTitle:atIndex:从数据源对象.没有这些,就不会创建索引.