Create a view like contact info in ios4 - iphone

I would like to create a view like contacts info in new ios4.
I've been looking for a document, source code(this is better) or something else but I wasn't lucky.
Please if somebody can help me I will be very very happy, I need to show a picture, some fields like textbox and description field.
Thanks in advance

I think you're talking about the Address Book APIs? Here is a link to the Apple Developer site that should get you started:
http://developer.apple.com/iphone/library/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/100-Introduction/Introduction.html
It goes over both how to integrate with the Address Book database, and how to just use an Address Book-like view for listing contact information.
Controllers: http://developer.apple.com/iphone/library/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/400-UI_Controllers/UI_Controllers.html#//apple_ref/doc/uid/TP40007744-CH5-SW1

Use tableView:viewForHeaderInSection: for your first table section, and point it to a UIView you've designed in IB. Take a look at this tutorial.

Related

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.

I do not want edit contact of address book

I am able to add contact to address book now after adding i see details of contact.I do not want edit button to edit contact. (i want it in only read mode). and also do't want use ABUnknownPersonViewController. How can i do this?
Please help me.
Thanks,
Vilas979
The Quick Contacts sample code from the Apple documents library provides a good idea how to use ABUnknownPersonViewController. Specifically, look for QuickContactsViewController.m and the pragma mark Add data to an existing person

Open detailview of contact of address book and filled detail and save it

I want to open detail view of contact and then. i want to save in adress book. please give me a hint.
Hint 1: Address Book Programming Guide for iPhone OS.
Hint 2: ABPersonViewController.
That is all you need to read and save data from the Apple address book, and present a reasonable UI to display the data. See the QuickContacts sample if you need code examples.

Display full Addressbook

How do I display the full addressbook in a table using the UITableview and Addressbook classes?
I'm going to go right ahead and guess Cocoa/Obj-C and the system Address Book.
I'm also going to assume that you know the basics of setting up an NSTableViewDatasource object.
This page at developer.apple.com should be instructive; on a related note, you probably want to use the people picker provided by the AddressBook.framework.
With the help of below link,i developed the application similar to your query.once go through it.
http://developer.apple.com/iphone/library/samplecode/QuickContacts/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009475-Intro-DontLinkElementID_2
Hope,this might be helpful for you.
Ramya.

Does anyone know of a To/Subject control a'la iPhone's Mail and SMS application?

I'd like to show a widget with a "To:"-field and a "Subject:"-field, just like Mail application does and the SMS application partly does (it has no subject field). For example, when entering a few letters of a person name a table is shown with relevant hits from the address book. A recipient is encapsulated in a blue bubble. And so on...
Has anyone reversed the MobileMail.app or MobileSMS.app and wrapped it up in an easy to use class? That is my dream ;-)
Thanks in advance!
/John
Check out Joe Hewitt three20 project, it includes a message composer.
It might be more than you want, because I'm not sure from your question what you're wanting to do with this view. But there's skpsmtpmessage, an open-source SMTP sender that includes the UI. It's available at http://code.google.com/p/skpsmtpmessage/
This is a non-answer, but I have looked for this as well, and have not found anything. I ended up doing something different with my idea that didn't require those fields to be directly input. I think you'll have to roll your own.
catlan points to a good library there with three20.
Also in 3.0 there is the new MessageUI Framework
chris.