ios 当通讯录添加的时候怎么ios 获取手机通讯录 最新的数据

& & &由于ios系统对用户隐私的控制,第三方应用程序只能通过苹果官方接口调用系统通讯录,不能像android那样直接操作通讯录数据库。& & &一般地,使用系统自带通讯录的方法有两种,一种是直接将整个通讯录引入到应用程序,另一种是逐条读取通讯录中的每一条联系人信息。下面我们就一一详解。
1 直接引用整个通讯录
使用的类:ABPeoplePickerNavigationController方法:
在LocalAddressBookController.h文件中
#import &UIKit/UIKit.h&
#import &AddressBook/AddressBook.h&
#import &AddressBookUI/AddressBookUI.h&
@interface LocalAddressBookController : UIViewController&ABPersonViewControllerDelegate,ABPeoplePickerNavigationControllerDelegate,ABNewPersonViewControllerDelegate&
ABPeoplePickerNavigationController *
ABNewPersonViewController *personViewC
在LocalAddressBookController.m文件中
#import "LocalAddressBookController.h"
#import "PublicHeader.h"
@implementation LocalAddressBookController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
- (void)didReceiveMemoryWarning
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
#pragma mark - View lifecycle
- (void)viewDidLoad
[super viewDidLoad];
picker = [[ABPeoplePickerNavigationController alloc]init];
picker.view.frame = CGRectMake(0, 0, Screen_width, Screen_height-48);
picker.peoplePickerDelegate =
picker.delegate =
//为了隐藏右上角的&取消&按钮
[picker setHidesBottomBarWhenPushed:YES];
[picker setNavigationBarHidden:NO animated:NO];//显示上方的NavigationBar和搜索框
[self.view addSubview:picker.view];
#pragma mark UINavigationControllerDelegate methods
//隐藏&取消&按钮
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
UIView *custom = [[UIView alloc] initWithFrame:CGRectMake(0.0f,0.0f,0.0f,0.0f)];
UIBarButtonItem *btn = [[UIBarButtonItem alloc] initWithCustomView:custom];
[viewController.navigationItem setRightBarButtonItem:btn animated:NO];
[btn release];
[custom release];
#pragma mark - peoplePickerDelegate Methods
-(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person
[picker setNavigationBarHidden:NO animated:NO];
NSLog(@"%@", (NSString*)ABRecordCopyCompositeName(person));
return YES;
-(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier
return YES;
-(BOOL)personViewController:(ABPersonViewController *)personViewController shouldPerformDefaultActionForPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier{
return YES;
//&取消&按钮的委托响应方法
-(void)peoplePickerNavigationControllerDidCancel:(ABPeoplePickerNavigationController *)peoplePicker
//assigning control back to the main controller
[picker dismissModalViewControllerAnimated:YES];
ios6 运行效果:
ios7 运行效果:
当我们将系统通讯录整个引入的时候,在通讯录的右上角有一个系统自带的&取消&按钮。如何才能将这个取消按钮隐藏呢?
(1)方法1:如果你的应用程序是用企业证书开发,不需要提交到appStore进行审核,那么答案非常简单,为响应的piker增加如下代码即可:
[picker setAllowsCancel:NO];
(2)方法二:上面的方法是非公开方法,是无法通过appStore审核的。如果想通过审核。可以尝试使用如下方法:
前提:设置 picker.delegate =
然后实现如下委托方法
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
UIView *custom = [[UIView alloc] initWithFrame:CGRectMake(0.0f,0.0f,0.0f,0.0f)];
UIBarButtonItem *btn = [[UIBarButtonItem alloc] initWithCustomView:custom];
//UIBarButtonItem *btn = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addAction)];
[viewController.navigationItem setRightBarButtonItem:btn animated:NO];
[btn release];
[custom release];
或者:(比上面更好)
前提:设置 picker.delegate =
然后实现如下委托方法,下面实现的效果,要比上面的好。上面实现的效果,当点击&搜索&框时,&取消&按钮还会重新出现。
- (void)navigationController:(UINavigationController *)navigationController
willShowViewController:(UIViewController *)viewController
animated:(BOOL)animated {
// Here we want to remove the 'Cancel' button, but only if we're showing
// either of the ABPeoplePickerNavigationController's top two controllers
if ([navigationController.viewControllers indexOfObject:viewController] &= 1) {
viewController.navigationItem.rightBarButtonItem =
2、逐条读取通讯录中的每一条联系人信息。
方法:在上述类中,直接添加如下方法即可
在LocalAddressBookController.h文件中
#import &UIKit/UIKit.h&
#import &AddressBook/AddressBook.h&
#import &AddressBookUI/AddressBookUI.h&
@interface LocalAddressBookController :
UITextView *textV
在LocalAddressBookController.m文件中
#import "LocalAddressBookController.h"
#import "PublicHeader.h"
@implementation LocalAddressBookController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
- (void)didReceiveMemoryWarning
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
#pragma mark - View lifecycle
- (void)viewDidLoad
[super viewDidLoad];
textView = [[UITextView alloc]initWithFrame:CGRectMake(0, 0, Screen_width, Screen_height)];
[self getAddressBook];
[self.view addSubview:textView];
//获取通讯录中的所有属性,并存储在 textView 中,已检验,切实可行。兼容io6 和 ios 7 ,而且ios7还没有权限确认提示。
-(void)getAddressBook
ABAddressBookRef addressBook = ABAddressBookCreate();
CFArrayRef results = ABAddressBookCopyArrayOfAllPeople(addressBook);
for(int i = 0; i & CFArrayGetCount(results); i++)
ABRecordRef person = CFArrayGetValueAtIndex(results, i);
//读取firstname
NSString *personName = (NSString*)ABRecordCopyValue(person, kABPersonFirstNameProperty);
if(personName != nil)
textView.text = [textView.text stringByAppendingFormat:@"\n姓名:%@\n",personName];
//读取lastname
NSString *lastname = (NSString*)ABRecordCopyValue(person, kABPersonLastNameProperty);
if(lastname != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",lastname];
//读取middlename
NSString *middlename = (NSString*)ABRecordCopyValue(person, kABPersonMiddleNameProperty);
if(middlename != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",middlename];
//读取prefix前缀
NSString *prefix = (NSString*)ABRecordCopyValue(person, kABPersonPrefixProperty);
if(prefix != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",prefix];
//读取suffix后缀
NSString *suffix = (NSString*)ABRecordCopyValue(person, kABPersonSuffixProperty);
if(suffix != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",suffix];
//读取nickname呢称
NSString *nickname = (NSString*)ABRecordCopyValue(person, kABPersonNicknameProperty);
if(nickname != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",nickname];
//读取firstname拼音音标
NSString *firstnamePhonetic = (NSString*)ABRecordCopyValue(person, kABPersonFirstNamePhoneticProperty);
if(firstnamePhonetic != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",firstnamePhonetic];
//读取lastname拼音音标
NSString *lastnamePhonetic = (NSString*)ABRecordCopyValue(person, kABPersonLastNamePhoneticProperty);
if(lastnamePhonetic != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",lastnamePhonetic];
//读取middlename拼音音标
NSString *middlenamePhonetic = (NSString*)ABRecordCopyValue(person, kABPersonMiddleNamePhoneticProperty);
if(middlenamePhonetic != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",middlenamePhonetic];
//读取organization公司
NSString *organization = (NSString*)ABRecordCopyValue(person, kABPersonOrganizationProperty);
if(organization != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",organization];
//读取jobtitle工作
NSString *jobtitle = (NSString*)ABRecordCopyValue(person, kABPersonJobTitleProperty);
if(jobtitle != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",jobtitle];
//读取department部门
NSString *department = (NSString*)ABRecordCopyValue(person, kABPersonDepartmentProperty);
if(department != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",department];
//读取birthday生日
NSDate *birthday = (NSDate*)ABRecordCopyValue(person, kABPersonBirthdayProperty);
if(birthday != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",birthday];
//读取note备忘录
NSString *note = (NSString*)ABRecordCopyValue(person, kABPersonNoteProperty);
if(note != nil)
textView.text = [textView.text stringByAppendingFormat:@"%@\n",note];
//第一次添加该条记录的时间
NSString *firstknow = (NSString*)ABRecordCopyValue(person, kABPersonCreationDateProperty);
NSLog(@"第一次添加该条记录的时间%@\n",firstknow);
//最后一次修改該条记录的时间
NSString *lastknow = (NSString*)ABRecordCopyValue(person, kABPersonModificationDateProperty);
NSLog(@"最后一次修改該条记录的时间%@\n",lastknow);
//获取email多值
ABMultiValueRef email = ABRecordCopyValue(person, kABPersonEmailProperty);
int emailcount = ABMultiValueGetCount(email);
for (int x = 0; x & x++)
//获取email Label
NSString* emailLabel = (NSString*)ABAddressBookCopyLocalizedLabel(ABMultiValueCopyLabelAtIndex(email, x));
//获取email值
NSString* emailContent = (NSString*)ABMultiValueCopyValueAtIndex(email, x);
textView.text = [textView.text stringByAppendingFormat:@"%@:%@\n",emailLabel,emailContent];
//读取地址多值
ABMultiValueRef address = ABRecordCopyValue(person, kABPersonAddressProperty);
int count = ABMultiValueGetCount(address);
for(int j = 0; j & j++)
//获取地址Label
NSString* addressLabel = (NSString*)ABMultiValueCopyLabelAtIndex(address, j);
textView.text = [textView.text stringByAppendingFormat:@"%@\n",addressLabel];
//获取該label下的地址6属性
NSDictionary* personaddress =(NSDictionary*) ABMultiValueCopyValueAtIndex(address, j);
NSString* country = [personaddress valueForKey:(NSString *)kABPersonAddressCountryKey];
if(country != nil)
textView.text = [textView.text stringByAppendingFormat:@"国家:%@\n",country];
NSString* city = [personaddress valueForKey:(NSString *)kABPersonAddressCityKey];
if(city != nil)
textView.text = [textView.text stringByAppendingFormat:@"城市:%@\n",city];
NSString* state = [personaddress valueForKey:(NSString *)kABPersonAddressStateKey];
if(state != nil)
textView.text = [textView.text stringByAppendingFormat:@"省:%@\n",state];
NSString* street = [personaddress valueForKey:(NSString *)kABPersonAddressStreetKey];
if(street != nil)
textView.text = [textView.text stringByAppendingFormat:@"街道:%@\n",street];
NSString* zip = [personaddress valueForKey:(NSString *)kABPersonAddressZIPKey];
if(zip != nil)
textView.text = [textView.text stringByAppendingFormat:@"邮编:%@\n",zip];
NSString* coutntrycode = [personaddress valueForKey:(NSString *)kABPersonAddressCountryCodeKey];
if(coutntrycode != nil)
textView.text = [textView.text stringByAppendingFormat:@"国家编号:%@\n",coutntrycode];
//获取dates多值
ABMultiValueRef dates = ABRecordCopyValue(person, kABPersonDateProperty);
int datescount = ABMultiValueGetCount(dates);
for (int y = 0; y & y++)
//获取dates Label
NSString* datesLabel = (NSString*)ABAddressBookCopyLocalizedLabel(ABMultiValueCopyLabelAtIndex(dates, y));
//获取dates值
NSString* datesContent = (NSString*)ABMultiValueCopyValueAtIndex(dates, y);
textView.text = [textView.text stringByAppendingFormat:@"%@:%@\n",datesLabel,datesContent];
//获取kind值
CFNumberRef recordType = ABRecordCopyValue(person, kABPersonKindProperty);
if (recordType == kABPersonKindOrganization) {
// it's a company
NSLog(@"it's a company\n");
// it's a person, resource, or room
NSLog(@"it's a person, resource, or room\n");
//获取IM多值
ABMultiValueRef instantMessage = ABRecordCopyValue(person, kABPersonInstantMessageProperty);
for (int l = 1; l & ABMultiValueGetCount(instantMessage); l++)
//获取IM Label
NSString* instantMessageLabel = (NSString*)ABMultiValueCopyLabelAtIndex(instantMessage, l);
textView.text = [textView.text stringByAppendingFormat:@"%@\n",instantMessageLabel];
//获取該label下的2属性
NSDictionary* instantMessageContent =(NSDictionary*) ABMultiValueCopyValueAtIndex(instantMessage, l);
NSString* username = [instantMessageContent valueForKey:(NSString *)kABPersonInstantMessageUsernameKey];
if(username != nil)
textView.text = [textView.text stringByAppendingFormat:@"username:%@\n",username];
NSString* service = [instantMessageContent valueForKey:(NSString *)kABPersonInstantMessageServiceKey];
if(service != nil)
textView.text = [textView.text stringByAppendingFormat:@"service:%@\n",service];
//读取电话多值
ABMultiValueRef phone = ABRecordCopyValue(person, kABPersonPhoneProperty);
for (int k = 0; k&ABMultiValueGetCount(phone); k++)
//获取电话Label
NSString * personPhoneLabel = (NSString*)ABAddressBookCopyLocalizedLabel(ABMultiValueCopyLabelAtIndex(phone, k));
//获取該Label下的电话值
NSString * personPhone = (NSString*)ABMultiValueCopyValueAtIndex(phone, k);
textView.text = [textView.text stringByAppendingFormat:@"%@:%@\n",personPhoneLabel,personPhone];
//获取URL多值
ABMultiValueRef url = ABRecordCopyValue(person, kABPersonURLProperty);
for (int m = 0; m & ABMultiValueGetCount(url); m++)
//获取电话Label
NSString * urlLabel = (NSString*)ABAddressBookCopyLocalizedLabel(ABMultiValueCopyLabelAtIndex(url, m));
//获取該Label下的电话值
NSString * urlContent = (NSString*)ABMultiValueCopyValueAtIndex(url,m);
textView.text = [textView.text stringByAppendingFormat:@"%@:%@\n",urlLabel,urlContent];
//读取照片
NSData *image = (NSData*)ABPersonCopyImageData(person);
UIImageView *myImage = [[UIImageView alloc] initWithFrame:CGRectMake(200, 0, 50, 50)];
[myImage setImage:[UIImage imageWithData:image]];
myImage.opaque = YES;
[textView addSubview:myImage];
CFRelease(results);
CFRelease(addressBook);
ios7运行效果:
想扩展右上角&取消&按钮的可以看 &
隐藏右上角&取消&按钮的方法 (有可行代码) &&
如何使用ios addressBook 总结的很全面,有概括性&
阅读(...) 评论()二次元同好交流新大陆
扫码下载App
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
- (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController*)peoplePicker didSelectPerson:(ABRecordRef)person NS_AVAILABLE_IOS(8_0);这也是我们获取数据的主要代理方法。此方法可以看到我们唯一可以获得可操作的数据就是(ABRecordRef)person。下面是获取person数据中手机号的实现:NSString* name = (__bridge_transfer&NSString*)ABRecordCopyCompositeName(person);& &&//获取联系人电话& &&ABMutableMultiValueRef&phoneMulti =&ABRecordCopyValue(person,&kABPersonPhoneProperty);& &&NSMutableArray&*phones = [[NSMutableArray&alloc]&init];& &&int&i;& &&for&(i =&0; i &&ABMultiValueGetCount(phoneMulti); i++)& & {& & & &&NSString&*aPhone = (__bridge_transfer&NSString*)ABMultiValueCopyValueAtIndex(phoneMulti, i);& & & &&NSString&*aLabel = (__bridge_transfer&NSString*)ABMultiValueCopyLabelAtIndex(phoneMulti, i);& & & &&if&(aPhone.length&&&11) {& & & & & &&break&;& & & & }& & & &&if([aLabel&isEqualToString:@"_$!&Mobile&!$_"]){&&& & & & & [phones&addObject:[self&reStringFormatter:aPhone]];& & & & }else{& & & & & & [phones&addObject:[self&reStringFormatter:aPhone]];& & & & }& & }& &&//解决phoneMulti的内存泄露& &&CFRelease(phoneMulti);&//AB.....&类不支持ARC,需要手动内存管理,一定要注意内存! 再谈谈应用调取通讯录信息的方式。这里我们需要让用户授权应用调取通讯录的权限,这样我们可以对通讯录进行增删改查操作。具体的,我们使用ABAddressBookRef和其相关的一系列类。注意,他们都不是iOS类,不支持现金常用的ARC自动管理内存,所以要特别注意内存问题,防止内存泄露。& 这里结合韩韩自身的实际应用,谈谈这种调用通讯录的方法。我的目的是读取通讯录,根据已有的手机号码数据查找相应的用户名,然后显示。在ABAddressBookRef系列类中有根据名字查找通讯录单元信息(ABRecordRef)的方法,但是恰好没有根据手机号查找通讯录单元信息的方法。那么只能通过获得通讯录全部信息,然后遍历并比对手机号信息来查找了。& && 1)询问用户获得通讯录读取权限:&if (ABAddressBookRequestAccessWithCompletion != NULL) {& & //检查是否是iOS6& & & & ABAddressBookRef abRef = ABAddressBookCreateWithOptions(NULL, NULL);& & & & if (ABAddressBookGetAuthorizationStatus() == kABAuthorizationStatusNotDetermined) {& & & & & & //如果该应用从未申请过权限,申请权限& & & & & & ABAddressBookRequestAccessWithCompletion(abRef, ^(bool granted, CFErrorRef error) {& & & & & & & & //根据granted参数判断用户是否同意授予权限& & & & & & & & if (granted) {& & & & & & & & & & //查询所有,这里我们可以用来进行下一步操作& & & & & & & & }& & & & & & });& & & & } else if (ABAddressBookGetAuthorizationStatus() == kABAuthorizationStatusAuthorized) {& & & & & & //如果权限已经被授予& & & & & & //查询所有,这里我们可以用来进行下一步操作& & & & } else {& & & & & & //如果权限被收回,只能提醒用户去系统设置菜单中打开& & & & }& & & & if(abRef){& & & & & & CFRelease(abRef);& & & & }& & } 2)获取全部通讯录单元信息(ABRecordRef)
ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, NULL);& & //获取联系人电话& & CFArrayRef allPerson = ABAddressBookCopyArrayOfAllPeople(addressBook);//取全部联系人 3)获取全部通讯录单元信息(获取名字) ABRecordRef aPerson = CFArrayGetValueAtIndex(allPerson, (CFIndex)i);& & & & ABMutableMultiValueRef phoneMulti = ABRecordCopyValue(aPerson, kABPersonPhoneProperty);& & & & //按照汉语姓名规则拼接用户名,因为有前、中、后名,这里要注意&
ABMutableMultiValueRef firstNameMulti = ABRecordCopyValue(aPerson, kABPersonFirstNameProperty);&
ABMutableMultiValueRef middleNameMulti = ABRecordCopyValue(aPerson, kABPersonMiddleNameProperty); ABMutableMultiValueRef lastNameMulti = ABRecordCopyValue(aPerson, kABPersonLastNameProperty);& & NSString *firsNameString& & = [self dealNullString:(__bridge_transfer NSString*)firstNameMulti];&
NSString *middleNameString& = [self dealNullString:(__bridge_transfer NSString*)middleNameMulti];& & NSString *lastNameString& & = [self dealNullString:(__bridge_transfer NSString*)la NSString *nameString = [NSString stringWithFormat:@"%@%@%@",lastNameString,middleNameString,firsNameString]stNameMulti]; 4)获取全部通讯录单元信息(获取手机号)
NSMutableArray *phones = [[NSMutableArray alloc] init];& & for (int i = 0; i & ABMultiValueGetCount(phoneMulti); i++)& & { //phoneMulti 为ABMutableMultiValueRef类型& & & & NSString *aPhone = (__bridge_transfer NSString*)ABMultiValueCopyValueAtIndex(phoneMulti, i);& & & & NSString *aLabel = (__bridge_transfer NSString*)ABMultiValueCopyLabelAtIndex(phoneMulti, i);& & & & TBDPRINT(@"PhoneLabel:%@ Phone#:%@",aLabel,aPhone);& & & & if (aPhone.length & 11) {& & & & & && & & & }& & & & if([aLabel isEqualToString:@"_$!&Mobile&!$_"]){& & & & & & [phones addObject:[self reStringFormatter:aPhone]];& & & & }else{& & & & & & [phones addObject:[self reStringFormatter:aPhone]];& & & & }& & } 剩下的就是比对和数据处理了。运用ABAddressBookRef还可以实现写入数据、删除数据的功能。待以后进一步研究。 在iOS9系统中,新发现关于通讯录的问题。现象,在调用通讯录的页面,当打开通讯录正常点选某条电话信息后关闭通讯录之后,在某些页面获取当前最上层window的时候,发现获取到了如 remoteKeyWindow 的一个window,为iOS9新发现的状况,这会造成一些window操作的错误。且到现在为止未查到相关资料。为了降低影响,采取了非根本的方式解决,即在关闭通讯录时,取一个当前页面的textField,在关闭通讯录之后取消该textField的第一响应者。经实测,问题得到了解决。但究其根本原因还不知晓。
阅读(4521)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
在LOFTER的更多文章
loftPermalink:'',
id:'fks_',
blogTitle:'关于iOS通讯录的调用',
blogAbstract:'\t通常我们在iOS项目中想到通讯录往往有两大方面的需求。一个是让用户自己从通讯录中选择朋友然后我们获取数据完成业务,另一个是项目通过读取用户通讯录信息来完成相应的数据处理,即用户自主行为和应用调取行为。\t首先谈一下用户自主调用通讯录。这里我们会使用系统控件ABPeoplePickerNavigationController。由于是用户自主行为,调用它我们无须向用户请求授权。但是ABPeoplePickerNavigationController',
blogTag:'通讯录,abpeoplepicker,addressbook,abaddressbookref,内存泄露',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:8,
publishTime:7,
permalink:'blog/static/',
commentCount:1,
mainCommentCount:1,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'0',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}

我要回帖

更多关于 ios9 开发获取通讯录 的文章

 

随机推荐