How can I change the look of ABPeoplePickerNavigationController so that i can see phone number type (home,mobile etc) - iphone

I am using ABPeoplePickerNavigationController in my app ,but client wants to see label of phone number infront of name say
"Name number type"
Ali mobile
Ali home
is there a way to customize ABPeoplePickerNavigationController to fulfill this requirement?
thanks

If you want to customize the address book according to your requirements, I suggest you should not use ABPeoplePickerNavigationController. Instead of that make the use of Address Book object, retrieve data from your address book and display those data in your custom ViewController.In this way you will be able to customize your View in whichever way you want.
Secondly you cannot modify the APIs and frameworks provided by Apple.

Related

Add telephone number to ical

Is it possible to add a telephone number to an ical file? I currently have this set as the "ORGANIZER":
ORGANIZER;CN="{ORGANIZER_NAME}":mailto:{ORGANIZER_EMAIL}
I would like to add a phone number to be able to call the ORGANIZER from e.g. Apple calendar.
According to the RFC5545 specification, the organizer is of value type CAL-ADDRESS.
https://www.rfc-editor.org/rfc/rfc5545#section-3.8.4.3
If one follows through on CAL-ADDRESS https://www.rfc-editor.org/rfc/rfc5545#section-3.3.3, it is defined as
The value is a URI as defined by [RFC3986] or any other IANA-registered form for a URI.
If one then clicks through on the RFC3986 specification link, to https://www.rfc-editor.org/rfc/rfc3986#section-1.1.2 and in particular the examples being easier to understand, one sees a tel example
tel:+1-816-555-1212
so just like the mail-to, one should be able to use .
Of course one has to check whether the receiving applications will cope with it. They don't support the specs 100%.

A control that looks like searching people in SMS composing window

I am looking for a control, class or nib file looks like "SMS or Email writing window".
In order to do my job, it should have these particular functions.
Has to look for the people in Addressbook.
When person is selected, it should return person's name and placed in the UITextField.
Has to be searched by person's surname or firstname.
If you see this screen capture, you will understand more easily.
But I am a new user in this web site, and I cannot upload the picture that I wanna show you guys.
Can anyone give me some clue how to solve this out?
Thanks in advance.
You're never going to get something that perfectly fits your very specific needs like that. To get the user info you'll want to look into Address Book Framework. To get the SMS view, here are two classes to get you started:
SSMessagesViewController
AcaniChat
You will probably have to interact with the Address Book UI Framework.

Implementing a To-field as in mail.app

Is there a way to get the To-field, as it is implemented in mail.app, into my app easily? If not, how would you go about creating such an advanced component that has manual text entry, "packaging" of entered addresses in "blue boxes", line wrapping and a '+' button to access the address book?
(I already have the code necessary to pick out contacts/e-mail addresses, I'm only asking about the To-field.)
Apparently the TTMessageController in Three20 is what you're looking for, according to this question: How to create a To field like the one in Mail or Facebook app?

How to create a To field like the one in Mail or Facebook app?

Does anyone know how to create a 'To field' like the one in Mail or Facebook app?
When an address is added from the A-Z list, a blue component that represents the address will be added to the text field. Is there a class provided for this functionality, or do we have to implement by ourselves?
There's no built-in framework. You'll either need to implement it yourself or use one of the open source components, such as Three20 (which includes the one used in the Facebook app).
In Three20's author's blog I found these few lines:
Message composer
TTMessageController emulates the
message composer in Apple's Mail app.
You can customize it to send any kind
of message you want. Include your own
set of message fields, or use the
standard "To:" and "Subject:".
Recipient names can be autocompleted
from a data source that you provide.
Maybe you should take a look at its source code at github.

iPhone Address Book Search

I want to create an inline address book search on my application. Basically I have a UITextField and I want it so that when you start typing text in, it will bring up search results from your Address Book, and can auto-complete what you're typing when you click it. If you look in the SMS or Mail application, typing in the "To" field when sending a message is exactly what I want.
I've looked through Apple's Address Book Programming Guide and the closest thing it has is ABPeoplePickerNavigationController. But this brings up a new view controller, which is not what I want. So my question is, is there an iOS API that allows me to use this search functionality? Or do I have to write my own?
tl;dr How do I mimic Apple's Address Book search function directly in a text field?
This demo project includes source code to perform an inline address book search from a UISearchBar.
You'll need to use the ABAddressBookCopyPeopleWithName API.