ABRecordRef contactPerson = (__bridge ABRecordRef) allContacts[i];but now my problem is how can I type-cast ABRecordRef value into NSNumber.
How can I solve this problem.
Home / DeveloperSection / Forums / How to type-cast ABRecordRef into NSNumber in iOS
ABRecordRef contactPerson = (__bridge ABRecordRef) allContacts[i];but now my problem is how can I type-cast ABRecordRef value into NSNumber.
Tarun Kumar
06-Dec-2015First of all, the code you are specifying here,
this code is used for fetching person contacts one by one.
after that we we will get Id of that person using contactPerson. Here I am providing that code which will fetch Id and type-cast into NSNumber: