gpt4 book ai didi

objective-c - 帮我理解 ABPeoplePickerNavigationController 类

转载 作者:行者123 更新时间:2023-11-29 13:32:46 25 4
gpt4 key购买 nike

我正在处理 iOS 通讯簿,但遇到了一些问题,我指的是 iOS programming guide这说

Prompting the User to Choose a Person Record: The ABPeoplePickerNavigationController class allows users to browse their list of contacts and select a person and, at your option, one of that person’s properties. To use a people picker, do the following:

  • Create and initialize an instance of the class.

  • Set the delegate, which must adopt the ABPeoplePickerNavigationControllerDelegate protocol.

  • Optionally, set displayedProperties to the array of properties you want displayed. The relevant constants are defined as integers; wrap them in an NSNumber object using the numberWithInt: method to get an object that can be put in an array.

  • Present the people picker as a modal view controller using the presentModalViewController:animated: method. It is recommended that you present it using animation.

有一点说创建并初始化类的一个实例,它的init方法包括withnibname 其他属性是inputview,这个可以用来自定义通讯录gui吗?

第三点也是指向displayedProperties,通讯录gui可以修改吗?

Like whatsapp, viber, etc .. I also want to customize the address book so I can also display status under contacts name, so I can display custom image as accessories etc etc. Please check the screenshots.

enter image description here

最佳答案

我相信他们没有使用 ABPeoplePickerNavigationController 类中的构建。

他们从地址簿中提取所有用户并将其填充到 TableView 中。我不知道有什么方法可以自定义 ABPeoplePickerNavigationController 类。

关于objective-c - 帮我理解 ABPeoplePickerNavigationController 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11446958/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com