Instagram/IGListKit

Expose UICollectionViewDataSource methods `indexTitlesForCollectionView:` and `indexPathForIndexTitle:atIndex:`

开放

#1,140 创建于 2018年3月28日

 (6 条评论) (9 个反应) (1 位负责人)Objective-C (1,540 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (13,063 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

New issue checklist

General information

  • IGListKit version: All
  • iOS version(s): All
  • CocoaPods/Carthage version: N/A
  • Xcode version: N/A
  • Devices/Simulators affected: N/A
  • Reproducible in the demo project? (Yes/No): N/A
  • Related issues: N/A

Debug information

# Please include debug logs using the following lldb command:
po [IGListDebugger dump]

Hello! I would like to propose a feature to expose the optional methods on UICollectionViewDataSource - indexTitlesForCollectionView: and indexPathForIndexTitle:atIndex:

These methods are used to implement what I would call the 'fast-jump scroll bar' on collection / table views. I'm not sure what it's actually called but a good example of this can be found on the right side of the contacts tab of the iOS contacts app.

Open to any suggestions on the best way to do this, or potential workarounds! Thanks.

贡献者指南