摘要:
//判断 if ([([UIApplication sharedApplication]currentUserNotificationSettings].types!=UIUserNotificationTypeNone) { UILocalNotification *ln =[[UILocalNo 阅读全文
摘要:
//这个变量用于记录授权是否成功,即用户是否允许我们访问通讯录 int __block tip=0; //声明一个通讯簿的引用 ABAddressBookRef addBook =nil; //因为在IOS6.0之后和之前的权限申请方式有所差别,这里做个判断 if ([[UIDevice curre 阅读全文
摘要:
NSString * identifierForVendor =[[UIDevice currentDevice].identifierForVendor UUIDString]; NSLog(@"%@dd",identifierForVendor);//唯一标识 [[UIDevice curren 阅读全文
摘要:
// 打电话 // 弊端:使用该方法进行拨号之后,当电话挂断之后不会返回应用程序, 会停留在通话记录界面// NSURL *url = [NSURL URLWithString:@"tel://13261936021"];// [[UIApplication sharedApplication] o 阅读全文
摘要:
开始 ios学习之旅,一天一次 坚持下来 为了 美好的的明天 -(UITableView *)tableView { if (!_tableView) { _tableView =[[UITableView alloc]initWithFrame:self.view.frame style:UITa 阅读全文