欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

iphone-common-codes-ccteam源代码 CCAddressBook.h

程序员文章站 2022-03-09 20:08:08
...

//
// CCAddressBook.h
// CCFC
//
// Created by xichen on 11-12-16.
// Copyright 2011年 ccteam. All rights reserved.
//


#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>


@interface CCAddressBook : NSObject
{
NSArray *_abAllPeople;
NSArray *_abGroups;
}


- (id)init;
- (void)dealloc;


- (int)getABRecordCount;
- (int)getABGroupCount;


- (ABRecordRef)getABRecordRefByIndex:(int)index;
- (ABRecordID)getABRecordIDByIndex:(int)index;
- (NSString *)getCompositeNameByIndex:(int)index;
- (NSMutableArray *)getPhoneNumberArrByIndex:(int)index;


// 根据ABRecordRef获取联系人姓名全称
- (NSString *)getFullNameByRecord:(ABRecordRef)record;


// 根据index获取联系人姓名全称
- (NSString *)getFullNameByIndex:(int)index;


@end


googlecode链接地址(会有更新):
[url]http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCAddressBook.h[/url]
相关标签: iphone cocoa touch

上一篇: 对象编码

下一篇: 面向对象编程