随笔分类 - 通讯录
摘要:1、程序外发短信 2、程序内发短信,发完短信自动返回应用 (1)首先导入框架MessageUI.framework (2) 引入头文件 #import <MessageUI/MessageUI.h> (3) 实现代理方法 <MFMessageComposeViewControllerDelegate
阅读全文
摘要:- (IBAction)openPhoneBook:(UIButton *)sender {//打开电话本 _tableView.hidden = YES; ABPeoplePickerNavigationController *peoplePicker = [[ABPeoplePickerNavi
阅读全文
摘要:首先建一个model类保存电话本信息 .h里面 { NSInteger sectionNumber; NSInteger recordID; NSString *name; NSString *email; NSString *tel; } @property NSInteger sectionNu
阅读全文
摘要:首先引入头文件 #import <AddressBookUI/ABPeoplePickerNavigationController.h> #import <AddressBook/ABPerson.h> #import <AddressBookUI/ABPersonViewController.h>
阅读全文
摘要:- (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
阅读全文
摘要:包含相应地库之后直接调用 #import <AddressBook/AddressBook.h> #import <AddressBookUI/AddressBookUI.h> -(void)readAllPeoples { //定义通讯录名字为addressbook ABAddressBookRe
阅读全文
浙公网安备 33010602011771号