gpt4 book ai didi

objective-c - UITableView:如何删除索引?

转载 作者:太空狗 更新时间:2023-10-30 03:59:39 25 4
gpt4 key购买 nike

我一直在研究教程 Core Data Tutorial: How To Use NSFetchedResultsController .如果我将 sectionNameKeyPath 添加到 NSFetchedREsultsController,我将得到这样的 `UITableView:enter image description here

当我为它提供 sectionNameKayPath 时,它会在 View 的右侧创建一个索引。在我的应用程序中,章节标题是“12 月 11 日星期日”、“12 月 10 日星期六”等日期。这些值不适合这样的索引。如何从我的“UITableView”中删除索引

最佳答案

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

关于objective-c - UITableView:如何删除索引?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8463927/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com