tags:

views:

367

answers:

2

Can anyone provide example of how to create contact view from address book.

Mostly I am interested in:

  1. What UIKit class to use for Add Photo
  2. What class to use for editing Name and Company
  3. How to implement composite control where I am able to edit phone, ringtone

Thx

A: 

I'd recommend you check out the Address Book Programming guide for iPhone OS section at the iPhone Developer site.

The iPhone SDK comes with pre-built classes and views that can handle selecting, editing or adding of all the address book data. You simply create one of these pre-built controllers (e.g. ABPersonViewController) and fill in the ID of the person, and which details the user can select/change.

Andrew Grant
+1  A: 

I've putted ImageView and a couple of TableViews with style set to Groped. I have one controller datasource for all my table views, that's why I set each table view tag property to unique int value to distinguish them in numberOfRowsInSection and cellForRowAtIndexPath.

Then everything is pretty standard, you are doing pushViewController and popViewControllerAnimated to show and hide details controller.

Works fine for me.

Aler