随笔分类 -  通讯录

摘要:1、程序外发短信 2、程序内发短信,发完短信自动返回应用 (1)首先导入框架MessageUI.framework (2) 引入头文件 #import <MessageUI/MessageUI.h> (3) 实现代理方法 <MFMessageComposeViewControllerDelegate 阅读全文
posted @ 2016-03-14 10:48 Mr_tao 阅读(1102) 评论(0) 推荐(0)
摘要:- (IBAction)openPhoneBook:(UIButton *)sender {//打开电话本 _tableView.hidden = YES; ABPeoplePickerNavigationController *peoplePicker = [[ABPeoplePickerNavi 阅读全文
posted @ 2015-11-20 15:56 Mr_tao 阅读(888) 评论(0) 推荐(0)
摘要:首先建一个model类保存电话本信息 .h里面 { NSInteger sectionNumber; NSInteger recordID; NSString *name; NSString *email; NSString *tel; } @property NSInteger sectionNu 阅读全文
posted @ 2015-11-17 14:25 Mr_tao 阅读(434) 评论(0) 推荐(0)
摘要:首先引入头文件 #import <AddressBookUI/ABPeoplePickerNavigationController.h> #import <AddressBook/ABPerson.h> #import <AddressBookUI/ABPersonViewController.h> 阅读全文
posted @ 2015-11-16 14:07 Mr_tao 阅读(307) 评论(0) 推荐(0)
摘要:- (BOOL)isMobileNumber:(NSString *)mobileNum { /** * 手机号码 * 移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188 * 联通:130,131,132,152,155,1 阅读全文
posted @ 2015-11-06 10:38 Mr_tao 阅读(817) 评论(0) 推荐(0)
摘要:包含相应地库之后直接调用 #import <AddressBook/AddressBook.h> #import <AddressBookUI/AddressBookUI.h> -(void)readAllPeoples { //定义通讯录名字为addressbook ABAddressBookRe 阅读全文
posted @ 2015-10-08 16:26 Mr_tao 阅读(239) 评论(0) 推荐(0)