Comments (5)
May be you try to load contact images?
Please, provide more code.
from apaddressbook.
APAddressBook *addressBook = [[APAddressBook alloc] init];
addressBook.fieldsMask = APContactFieldAll;
addressBook.sortDescriptors = @[
[NSSortDescriptor sortDescriptorWithKey:@"name.firstName" ascending:YES],
[NSSortDescriptor sortDescriptorWithKey:@"name.lastName" ascending:YES]
];
dispatch_queue_t queue = dispatch_queue_create("background task", NULL);
[addressBook loadContactsOnQueue:queue completion:^(NSArray<APContact *> *contacts, NSError *error) {
//Crashing
}];
from apaddressbook.
dispatch_queue_t queue = dispatch_queue_create("background task", NULL);
Try to store queue
in property.
Also, if you call some UI-interacting methods in completion
block, the app can crash. Use main queue to fix this
from apaddressbook.
Thanks.
from apaddressbook.
Feel free to reopen this issue if you still have problems
from apaddressbook.
Related Issues (20)
- How to install latest 0.3.1 Version using Pod? HOT 2
- how to display contacts sorted alphabetically HOT 1
- Unable to get the address information HOT 5
- Get Contact Identifier HOT 2
- Can the contacts be persisted in some data store HOT 1
- No visible @interface for 'ContactTableViewCell' declares the selector 'updateWithContact:' HOT 1
- StartObserverChangeswithCallback gets fired multiple time even for a single change in address book HOT 3
- Contact phone number array object prefix with (null) ((null)) - in Xcode 8.2.1 HOT 3
- APAddressBook excessive memory consumption with a large number of contacts HOT 1
- Select the address book HOT 1
- Single contact going duplicate multiple time HOT 2
- Swift 4 update HOT 1
- Is RecordID always unique? HOT 2
- How can I get google id (social type id) HOT 5
- Adding New Contacts Don't Appear In List HOT 2
- 'ABRecordRef' is deprecated: first deprecated in iOS 9.0 HOT 1
- Address not showing. HOT 3
- Add nonGregorianBirthday field to APContact
- APAddressBookExternalChangeRoutine crash HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apaddressbook.