leejayid / ljcontactmanager Goto Github PK
View Code? Open in Web Editor NEWLJContanctManager 是一款操作通讯录的类库
License: MIT License
LJContanctManager 是一款操作通讯录的类库
License: MIT License
我选择联系人时候有的有空格(188 888 888 88)这种,有的就没有空格(18888888888),请问这个是什么原因啊,我选择时候看了在手机通讯录显示的都是有空格的。
第一次 进去 怎么没有数据 你的demo 也是没有 第二次进去 才有 怎么让他第一次进去 就直接获取到手机通讯录数据
通讯录中一个用户有多个号码 怎么全部获取到
IOS13系统下面获取通讯录没办法获取到数据,查了相关资料,发现是IOS13系统下面在获取通讯录新中不允许获取”备注 CNContactNoteKey“这个属性了,需要将这个属性去掉后才行
第一次授权访问后回调结果为空怎么回事
你好,我刚才搜索了下,Cocoapods尚未更新
如题,遮盖问题如何解决
农历生日无法区分闰月
你的这个通讯录的库封装的很好了,阅读你的代码很赞!
有一点建议是 添加到已存在的联系人和 创建新的联系人两个接口 操作完成后,需要知道操作的结果成功还是失败,如果添加结果的回调,会更好一点,仅仅个人建议,不喜请忽略(Close).
编辑联系人如何直接跳转到编辑页面,而不是跳转到通讯录列表?
改进建议,使用数字搜索:
(NSString *)lj_filterSpecialString:(NSString *)string
{
NSString *cnPhoneOrig = [string copy];
if (0 == cnPhoneOrig.length)
{
return @"";
}
NSScanner *aScaner = [NSScanner scannerWithString:cnPhoneOrig];
NSCharacterSet *aSetNumbers = [NSCharacterSet characterSetWithCharactersInString:@"0123456789"];
NSString *cnPhone = @"";
NSString *aNumber = nil;
NSString *aOther = nil;
while (![aScaner isAtEnd])
{
[aScaner scanUpToCharactersFromSet:aSetNumbers intoString:&aOther];
[aScaner scanCharactersFromSet:aSetNumbers intoString:&aNumber];
cnPhone = [cnPhone stringByAppendingString:aNumber];
}
if ([cnPhone hasPrefix:@"86"])
{
cnPhone = [cnPhone substringFromIndex:2];
}
if ([cnPhone hasPrefix:@"086"])
{
cnPhone = [cnPhone substringFromIndex:3];
}
return cnPhone;
}
0 CoreFoundation
CFRelease + 1084
1 testApp
-[LJPhone initWithMultiValue:index:] (LJPerson.m:346)
2 testApp
-[LJPhone initWithMultiValue:index:] (LJPerson.m:346)
3 testApp
-[LJPerson initWithRecord:] (LJPerson.m:219)
4 superman
__63-[LJContactManager _asynAccessAddressBookWithSort:completcion:]_block_invoke (LJContactManager.m:407)
5 libdispatch.dylib
__dispatch_call_block_and_release + 24
6 libdispatch.dylib
__dispatch_client_callout + 16
7 libdispatch.dylib
__dispatch_root_queue_drain + 1152
8 libdispatch.dylib
__dispatch_worker_thread3 + 108
9 libsystem_pthread.dylib
_pthread_wqthread + 816
第一次允许了开启访问权限,仍然会先显示没有开启访问权限,但是仍然还是会显示通讯录列表
目前该Demo中的分组排序数据和系统的分组排序是不同的,同一section下的联系人并未做姓名的拼音排序,望能优化下。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.