I am using AddressBook framework to retrieve contacts. 1st time, alert box appearing with, DON'T ALLOW and ALLOW .
If I go for DON'T ALLOW, later, if I need to synchronise contacts to my app, I go for Settings --> My APP -->> Contacts then, make that switch to Green.
Immediately, my app getting crash.
Crash Log:
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil,
NSStringFromClass([AppDelegate class])); //Thread 1: signal SIGKILL
}
}
Kindly guide me.