我可以将字母表跳转列表添加到联系人列表等表格视图中 [英] Can I add an alphabet jump list to a tableview like the contact list

查看:112
本文介绍了我可以将字母表跳转列表添加到联系人列表等表格视图中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用中创建一个自定义联系人列表,提供类似标准联系人列表的AZ跳转列表。

I would like to create a custom contact list in my app offering a similar A-Z jump list like the standard contact list does.

这是否可以使用TableView?

Is this possible with a TableView?

推荐答案

有一个关于如何在Table View编程指南,称为填充索引列表。

There is a comprehensive tutorial on how to do it in the "Table View Programming Guide", called "Populating an Indexed List".

此外,如果您还需要具有搜索功能(放大图标),则有两种编写良好的解决方案:

Moreover, if you also need to have the search functionality (the magnify icon), there are two well written solutions:

  • http://iamthewalr.us/blog/2009/12/uisearchdisplaycontroller-and-uilocalizedindexedcollation/
  • http://lukeredpath.co.uk/blog/using-uilocalizedindexedcollation-with-searchable-table-views.html

这篇关于我可以将字母表跳转列表添加到联系人列表等表格视图中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆