I'm trying to open Address book using new Contacts.framework. This framework is introduced in iOS 9.0, I've tried some ways to open the view controller but ends up crashing. Has anyone faced similar issue?
NSError *error;
CNContactStore *store = [[CNContactStore alloc] init];
NSArray *cArray = [store unifiedContactsMatchingPredicate:[CNContact predicateForContactsMatchingName:@"Kate"] keysToFetch:@[CNContactEmailAddressesKey,CNContactPhoneNumbersKey] error:&error];
CNContactViewController *cVC = [CNContactViewController viewControllerForContact:[cArray objectAtIndex:0]];
[self presentViewController:cVC animated:YES completion:^{
}];