Alterplay / APAddressBook

Easy access to iOS address book
MIT License
1.38k stars 193 forks source link

Crash Report in APThread.m #127

Open aliazadeh opened 8 years ago

aliazadeh commented 8 years ago

Hi , I can not use Your Classes in my Project :( every time my Application Crashs in "APThread.m" in "- (void)performBlock:(void (^)())block" line 43 block () Crash message is EXC_BAD_ACCESS(code=2 , .... ) and some one code is equal to 1 : EXC_BAD_ACCESS(code=1 , .... )

// ***** my code is : APAddressBook addressBook = [[APAddressBook alloc] init];

[addressBook loadContacts:^(NSArray <APContact > contacts, NSError *error) {

   // someAction

}];

actually application will crash every time that I use addressBook with one 'Block' ! Thanks

belkevich commented 8 years ago

Hi, I think you should try to store addressBook variable to some property. Also, check the Example in this repo. It should works fine. If not, let me know.

aliazadeh commented 8 years ago

Yes it is Correct ;) I stored some new Field in AddressBook ;)

On Jun 8, 2016, at 4:38 PM, Alexey Belkevich notifications@github.com wrote:

Hi, I think you should try to store addressBook variable to some property. Also, check the Example in this repo. It should works fine. If not, let me know.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Alterplay/APAddressBook/issues/127#issuecomment-224569915, or mute the thread https://github.com/notifications/unsubscribe/APYHoe-EG6EmWdCsN9Me6GCfUy2ffRPwks5qJrDIgaJpZM4IwOr8.

belkevich commented 8 years ago

Do you try 'Example' app in this repo? If not please, try it. Also, could you provide the screenshot of stack trace of the error?

26 июня 2016 г., 8:14 +0300, Ali Azadehnotifications@github.com, писал:

Yes it is Correct ;) I stored some new Field in AddressBook ;)

On Jun 8, 2016, at 4:38 PM, Alexey Belkevichnotifications@github.comwrote:

Hi, I think you should try to store addressBook variable to some property. Also, check the Example in this repo. It should works fine. If not, let me know.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Alterplay/APAddressBook/issues/127#issuecomment-224569915, or mute the threadhttps://github.com/notifications/unsubscribe/APYHoe-EG6EmWdCsN9Me6GCfUy2ffRPwks5qJrDIgaJpZM4IwOr8.

— You are receiving this because you commented. Reply to this email directly,view it on GitHub(https://github.com/Alterplay/APAddressBook/issues/127#issuecomment-228584787), ormute the thread(https://github.com/notifications/unsubscribe/ABObNdZ8Mrv000hu-ONcPVFsmPVgM_Lxks5qPgqfgaJpZM4IwOr8).