iphone - 地址簿 + UITableView 索引 iPhone

标签 iphone objective-c ios ipad addressbook

<分区>

我只想检索所有地址簿联系人并将其显示在 UITableView 中。

显示所有联系人,如图所示。

我不知道该怎么做。

enter image description here

请建议我解决这个问题。

提前致谢...

最佳答案

您的 friend 是 ABAddressBook:http://developer.apple.com/library/mac/#documentation/UserExperience/Reference/AddressBook/Classes/ABAddressBook_Class/Reference/Reference.html 它有 (NSArray *)people 返回所有联系人。 您可以将其用作表格的来源。 我没有可用的完整示例代码,但我认为这不是 Stack Overflow 的重点。在此处搜索 SO 以查找如何实现 UITableView

关于iphone - 地址簿 + UITableView 索引 iPhone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7553862/

相关文章:

ios - NSNotification 没有调用@selector 方法

iphone - 如何更改或替换iPhone内的数据库sqlite?

iphone - iPad/iPhone with Titanium 的启动 View

ios - 在 iPhone 应用程序中安全存储 Web API 凭据的位置?

objective-c - 在 Modern Runtime 中使用实例变量

iphone - App在后台时预取一些数据

ios - 如何将异常转换为 NSError 对象

ios - 基于指南针旋转 GMSMapView

ios - 如何在准备要在 swift iOS 中显示的数据时制作加载页面

ios - UTesting 只是失败,没有任何更多上下文而没有编写任何测试