2011-12-11 81 views
4

我一直玩弄教程Core Data Tutorial: How To Use NSFetchedResultsController。如果我添加一個sectionNameKeyPathNSFetchedREsultsController我會得到一個`的UITableView這樣的:enter image description hereUITableView:如何刪除索引?

當我爲它提供一個sectionNameKayPath它會在視圖右側的指數。在我的申請中,章節標題是「星期日11.十二月」,「星期六10.十二月」等日期。這些值不適用於像這樣的索引。如何從我的'UITableView'中刪除索引

+1

也許這可以幫到你嗎? :) http://stackoverflow.com/questions/2581606/uitableview-hide-sectionindex-but-retain-sections – MartinElvar

回答

9

只需從數據源對象中刪除sectionIndexTitlesForTableView:tableView:sectionForSectionIndexTitle:atIndex:的實現。沒有這些,將不會創建索引。