我想编辑联系人列表programatically.is有任何的API可用于该.....如何以编程方式编辑现有的联系人在iPhone
1
A
回答
0
可以通过编程访问接触和使用ABAddressBook.framework编辑。
你可以在这里找到文档:
和编程指南这里:
1
-(void)showPersonViewController:(NSString *)nameInContact
{
// Fetch the address book
ABAddressBookRef addressBook = ABAddressBookCreate();
// Search for the person in the address book
NSArray *people = (NSArray *)ABAddressBookCopyPeopleWithName(addressBook, CFSTR(nameInContact));
// Display the information if found in the address book
if ((people != nil) && [people count])
{
ABRecordRef person = (ABRecordRef)[people objectAtIndex:0];
ABPersonViewController *picker = [[[ABPersonViewController alloc] init] autorelease];
picker.personViewDelegate = self;
picker.displayedPerson = person;
// Allow users to edit the person’s information
picker.allowsEditing = YES;
[self.navigationController pushViewController:picker animated:YES];
}
else
{
// Show an alert if the person is not in Contacts
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
message:[NSString stringWithFormat:@"Could not find %@ in the Contacts application", nameInContact]
delegate:nil
cancelButtonTitle:@"Cancel"
otherButtonTitles:nil];
[alert show];
[alert release];
}
[people release];
CFRelease(addressBook);
}
相关问题
- 1. 如何编辑现有联系人
- 2. 以编程方式编辑iOS联系人
- 3. android编程式编辑联系人
- 4. 以编程方式在iphone联系人列表中添加联系人
- 5. 以编程方式调用联系人?
- 6. 以编程方式调用联系人
- 7. 如何以编程方式禁用Outlook中的联系人编辑?
- 8. 如何实现iPhone联系人应用编辑过渡效果?
- 9. 出现在联系人中的联系人编辑视图UI
- 10. 如何在Android中以编程方式创建联系人组?
- 11. 如何以编程方式在android中删除联系人组?
- 12. 如何在android中以编程方式添加联系人?
- 13. 如何以编程方式列出我的LinkedIn联系人?
- 14. 如何在iPhone中编辑通讯录中的联系人?
- 15. 如何以编程方式添加联系人?
- 16. 如何以编程方式添加联系人?
- 17. 如何使用MonoTouch c#以编程方式获取联系人?
- 18. 如何以编程方式编辑GridView?
- 19. 如何以编程方式编辑datagridview?
- 20. 如何以编程方式编辑xorg.conf?
- 21. 如何在Android中以编程方式更新“个人资料”联系人?
- 22. 钛 - 如何编辑联系人?
- 23. android编辑联系人
- 24. ABPersonViewController联系人列表(编辑模式)
- 25. 以编程方式从联系人中删除联系人图片
- 26. 以编程方式在联系人中创建组
- 27. 以编程方式在Android中检索SIM卡联系人
- 28. 显示联系人 - iPhone编程
- 29. Android:以编程方式检索帐户的联系人
- 30. Android:以编程方式启用导入的帐户联系人
是的,这是可能的,但情况是,当APP用户陶斯接触,他会问他你是否属于英国或者不属于他。他选择是的,我们应该在现有联系人前加49,但不应该干扰b本地联系人。联系人列表必须相同。但在APP中,只有我们必须将...添加+49 ... – user857280
如果您彻底研究链接,则会找到访问联系人并将号码添加到它只在您的应用程序内向用户显示。但是,您需要自己的观点才能显示联系人。你将无法使用人员选择器。或者你可以复制你的应用程序的地址簿,并添加你想要的前缀。 –
我没有在应用程序中保留任何联系人。我正在访问本地联系人。我想在APP中打电话时加上+49。结束通话后,该号码不应该改变... – user857280