{"id":13696252,"url":"https://github.com/TalkingJourney/SCIndexView","last_synced_at":"2025-05-03T16:33:02.668Z","repository":{"id":62453387,"uuid":"117329876","full_name":"TalkingJourney/SCIndexView","owner":"TalkingJourney","description":"SCIndexView provide a index view like Wechat.","archived":false,"fork":false,"pushed_at":"2021-01-05T13:21:19.000Z","size":5533,"stargazers_count":566,"open_issues_count":1,"forks_count":89,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-02T06:16:15.632Z","etag":null,"topics":["index","indexview","uitableviewindexsearch","uitableviewindexview"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TalkingJourney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-13T09:09:49.000Z","updated_at":"2025-02-28T23:36:29.000Z","dependencies_parsed_at":"2022-11-02T01:01:44.449Z","dependency_job_id":null,"html_url":"https://github.com/TalkingJourney/SCIndexView","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalkingJourney%2FSCIndexView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalkingJourney%2FSCIndexView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalkingJourney%2FSCIndexView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalkingJourney%2FSCIndexView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TalkingJourney","download_url":"https://codeload.github.com/TalkingJourney/SCIndexView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252216152,"owners_count":21713104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["index","indexview","uitableviewindexsearch","uitableviewindexview"],"created_at":"2024-08-02T18:00:37.734Z","updated_at":"2025-05-03T16:33:00.606Z","avatar_url":"https://github.com/TalkingJourney.png","language":"Objective-C","funding_links":[],"categories":["UI Components","Objective-C","OOM-Leaks-Crash"],"sub_categories":["Uncategorized"],"readme":"# 效果\n微信效果图：\n![defalut style.gifo动](https://github.com/TalkingJourney/SCIndexView/blob/master/SCIndexViewDemo/Snapshots/demo_default.gif)\ntoast效果图：\n![center toast style.gifo动](https://github.com/TalkingJourney/SCIndexView/blob/master/SCIndexViewDemo/Snapshots/demo_center_toast.gif)\n\n# 功能及优点\n主要功能及优点如下：\n1. 当滑动UITableView列表时，索引视图的索引位置会跟着移动；\n2. UITableView和SCIndexView之间手势和事件不冲突，操作其中一个视图，另一个视图失效；\n3. 当滑动索引视图时，会有指示器或者toast提示当前索引位置；\n4. 索引视图可以从sc_startSection开始，忽略前面section；\n5. 可以任意定制指示器、toast、索引视图的大小，文字颜色大小，间距等UI样式；\n6. 当第一个数据为UITableViewIndexSearch时，自动添加放大镜图标。\n\n# 使用方法\n可以通过CocoaPods导入，支持iOS7及以上。\n\npod 'SCIndexView'\n\n1. 创建SCIndexViewConfiguration对象，这个对象用来控制索引的UI样式；\n2. 设置UITableView对象的 sc_translucentForTableViewInNavigationBar 和 sc_indexViewConfiguration；\n3. 再设置UITableView对象的索引数据源。\n不用再关心SCIndexView视图本身，直接在UITableView上设置即可。\n\n```\nSCIndexViewConfiguration *indexViewConfiguration = [SCIndexViewConfiguration configuration];\ntableView.sc_indexViewConfiguration = indexViewConfiguration;\ntableView.sc_translucentForTableViewInNavigationBar = YES;\ntableView.sc_indexViewDataSource = indexViewDataSource;\n```\n\n# 结束\n如果大家有什么想法的话，可以向我反馈。如果大家喜欢的话，也可以通过star来鼓励下我，感谢大家捧场。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTalkingJourney%2FSCIndexView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTalkingJourney%2FSCIndexView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTalkingJourney%2FSCIndexView/lists"}