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.
ABRecordRef contactPerson = (__bridge ABRecordRef) allContacts[i];but now my problem is how can I type-cast ABRecordRef value into NSNumber.
Other
First 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: