简体   繁体   English

WhatsApp如何将他们的图标添加到iPhone SDK中的联系人选项卡和收藏夹选项卡中

[英]How does WhatsApp add their icon to their contacts tab and favourites tab in iPhone SDK

I have been working on app which needs phone contacts,i am able to get the name and phone numbers from the AddressBook. 我一直在处理需要手机联系的应用程序,我可以从AddressBook获取姓名和电话号码。 But want to make tab like whats app has done,they open the default Address Book with icon of whats app in in front of contact number if the user is available on WhatsApp and also the status of the contact person. 但是想要制作应用程序已经完成的标签,如果用户在WhatsApp上可用,他们打开默认地址簿,并在联系人号码前面显示应用程序的图标,以及联系人的状态。 How does the WhatsApp add icon to the number and add status to their contacts tab? WhatsApp如何为数字添加图标并将状态添加到其联系人选项卡? Also i am confused whether the contacts tab in WhatsApp using default UIAddressBookController or they made custom. 我也很困惑WhatsApp中的联系人选项卡是否使用默认的UIAddressBookController或者他们自定义。 For more clarity please check the screenshot that i have added. 为了更加清晰,请查看我添加的屏幕截图。

Kindly suggest me how can i achieve this in my app using the default ABPeoplePickerNavigationController. 请建议我如何使用默认的ABPeoplePickerNavigationController在我的应用程序中实现此目的。

I am pretty sure that this is a custom view controller that mimicks the original detail view of a contact. 我很确定这是一个自定义视图控制器,可以模仿联系人的原始详细视图。 It looks similar but is still different. 它看起来很相似,但仍然不同。 There is no "groups in common" or status or whatsoever in the standard detail view. 标准详细信息视图中没有“共同组”或状态或任何状态。 Also, this is a standard system component that you can and should not override. 此外,这是一个标准的系统组件,您可以也不应该覆盖它。

They will probably be using the API to access the Contacts and present them in their own view controllers. 他们可能会使用API​​访问联系人并将其显示在他们自己的视图控制器中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM