I am writing an app for editing address book group, it is running a lot of changes like remove all contact from book, add all contacts, etc. The problem is that when the methods are running the app freezes UI, I understand that it happens because of running in the main thread but when I am trying to do it in background, it has problems like crashing and wrong changes in the group. Who can help me with resolving that issue?
I think running that in for a lot of times is blocking my UI:
ABAddressBookSave(_addressBookRef, &cfError);