Comments (4)
Your code seems fine, however workPhone etc is not guaranteed to be at index 1 etc. items are also not stored using their localized label names.. Try instead asking for valueForLabel: RHPersonPhoneHomeMainLabel
from rhaddressbook.
How can i get Contact Name that matching with specific Number in any contact like '12345'
from rhaddressbook.
Asif, the feature you are asking for is not in the original ABAddressBook and as such, is not found in RHAddressBook. You can easily do it yourself. All you have to do is get an array of all people and filter it with an NSPredicate. Check google and stack overflow.
NSArray *allPeople = [addressBook people];
NSArray *filteredContacts = [allPeople filteredArrayUsingPredicate:predicate];
from rhaddressbook.
Can you please send me sample code to find name against number 12345 in
address book. I am new to IOS
Thanks
On Wed, May 7, 2014 at 10:55 PM, Alex Recarey [email protected]:
Asif, the feature you are asking for is not in the original ABAddressBook
and as such, is not found in RHAddressBook. You can easily do it yourself.
All you have to do is get an array of all people and filter it with an
NSPredicate. Check google and stack overflow.NSArray *allPeople = [addressBook people];
NSArray *filteredContacts = [allPeople filteredArrayUsingPredicate:predicate];—
Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-42460393
.
from rhaddressbook.
Related Issues (20)
- Crash in NSThread+RHBlockAdditions.h HOT 1
- Failed to create RHAddressBookSharedServices instance
- 3-5 Seconds to initialize HOT 1
- implicit conversion
- Localized address format? HOT 1
- New RHPerson in Local addressbook when default is Icloud ?
- Not receiving Notifications in swift
- Native Swift version
- Compile issues with latest source HOT 2
- Update version in Cocoapods repository to 1.2.0 HOT 1
- Why RHAddressBook/AddressBook.h file not find?
- [RHPerson vCardRepresentationForPeople:] crash
- Crash in RHAddressBook vCardRepresentationForPeople
- Xcode 6.3 reports semantic issues HOT 1
- application blocks when i click one group in tableview
- Does RHPerson support NSCoing? How can I NSCoding RHPerson?
- RHRecord crash HOT 3
- import for Swift? HOT 1
- Update the example & README for non-ARC version?
- How can I get google id (social type id)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rhaddressbook.