ABAddressBook & AddressBook UI 文件介绍(IOS开发)
来源:互联网 发布:java上传图片到tomcat 编辑:程序博客网 时间:2024/05/22 06:05
原文链接地址:http://what-when-how.com/ios-4/accessing-the-address-book-ios-4/
下图为 文章的核心部分。介绍了两个 ios addressbook 和addressbook UI 系统frame,有一些不了解的,看看后再编程,会有很大帮助
In this section, we’ll provide a basic reference that supplements Apple’s own tutorial, but we suggest you read their guide for more extensive information. We’ll look at the Address Book frameworks, show how to access the Address Book’s properties, and explain how to use the Address Book UI.
Table 9.3 lists many of the most important classes in the frameworks. Table 9.3 The Address Book classes, the framework they belong to, and what they do
Class
Framework
Summary
ABAddressBook
Address Book
Interface for accessing and changing the Address Book; may not be required if you use the Address Book UI framework
ABNewPersonViewController
Address Book UI
Interface for entering new record manually
ABPeoplePickerNavigationController
Address Book UI
Interface for selecting users and properties
ABPersonViewController
Address Book UI
Interface for displaying and editing records
ABUnknownPersonViewController
Address Book UI
Interface for displaying "fake" contact and possibly adding it to Address Book
ABGroup
Address Book
Opaque type giving access to the records of groups
ABPerson
Address Book
Opaque type giving access to the records of individual people
ABRecord
Address Book
Record providing information on a person or group
ABMultiValue
Address Book
Type containing multiple values, each with its own label; its precise use is defined in ABPerson, where it’s applied to addresses, dates, phone numbers, instant messages, URLs, and related names
ABMutableMultiValue
Address Book
An ABMultiValue whose values can be modified
Each of these classes contains numerous functions that can be used to build Address Book projects. We’ll talk about a few important functions and point you to the class references for the rest.
Accessing Address Book properties
As you’ll see shortly, the Address Book and Address Book UI frameworks ultimately provide different ways of accessing the Contacts data information: you might be working with the Address Book programmatically, or a user may be making selections through fancy UIs. Ways to select individual contacts may vary, but after a contact has been selected, you’ll generally use the same getter and setter functions to work with that record. These important functions are listed in table 9.4.
Table 9.4 Property setters and getters are among the most important functions in the Address Book.
Function
Arguments
Summary
ABRecordCopyValue
ABRecordRef, property
Looks up a specific property from a specific record
ABRecordSetValue
ABRecordRef, property, value, &error
Sets a property to a value in a record
ABMultiValueGetCount
ABMultiValue
Returns the size of a multivalue (which can contain one or more copies of a record, such as multiple phone numbers)
ABMultiValueCopyLabelAtIndex
ABMultiValueRef,index
Looks up the label of an entry in a multivalue
ABMultiValueCopyValueAtIndex
ABMultiValueRef,index
Looks up the content of an entry in a multivalue
ABCreateMutableCopy
ABMultiValueRef
Creates a copy of a multivalue
ABMultiValueReplaceLabelAtIndex
ABMutableMultiValueRef, label, index
Replaces a label at an index in a multivalue
- ABAddressBook & AddressBook UI 文件介绍(IOS开发)
- ABAddressBook & AddressBook UI 文件介绍(IOS开发)
- AddressBook UI 官方demo (IOS)
- iOS开发------操作通讯录(AddressBook篇)&通讯录UI(AddressBookUI篇)
- 【iOS开发-114】ABAddressBook通讯录:增删改查的简单介绍,CF框架于F框架间的转换
- iOS开发UI篇—常见的项目文件介绍
- iOS开发UI篇—常见的项目文件介绍
- iOS开发UI篇—常见的项目文件介绍
- iOS开发UI篇—常见的项目文件介绍
- iOS开发UI篇—常见的项目文件介绍
- iOS开发UI篇—常见的项目文件介绍
- iOS开发UI篇—常见的项目文件介绍
- iOS开发UI篇—常见的项目文件介绍
- ios开发 通信录AddressBook.framework
- iOS开发------获取系统联系人(AddressBook篇)
- iOS AddressBook
- ios addressbook
- IOS开发之UI介绍
- 如何更改struts中错误默认返回input InputConfig内methodName跟resultName的使用方法
- javaEE--ibatis--Sping+flex4 调用存储过程返回List结果集
- 监听输入框值的即时变化onpropertychange、oninput
- AudioManager学习
- 日语的商品购物与消费
- ABAddressBook & AddressBook UI 文件介绍(IOS开发)
- VC内存泄露检测之运行时库(CRT)
- WSA_FLAG_OVERLAPPED Is Needed for Non-Blocking Sockets
- 娱乐,C语言模拟C++虚函数多态性
- 日语的前卫服饰与时装
- Android的第一个程序运行
- Spring3.0和Mybatis的集成,含事务配置
- pb11及以上版本将CS转换成BS的步骤
- Ubuntu 下 安装 RabbitVCS 教程