views:

255

answers:

1

When we click on a specific contact in the contacts app in the iphone SDk, we see the image of the person, the name and the tableview with details of the person. I would like to know how to generate that view exactly ? . I tried having a table view slightly below and tried to add a view with the image and the name above the table view. But i was not able to get the gray stripe background image.

Is there a better way to do what i want ?

+2  A: 

I assume this is what you're trying to do:

alt text

That top Cell is a custom UITableViewCell, with a clear background. There are a lot of ways to subclass a UITableViewCell. You would just position the UIImageView so that it's on the left side of the cell and then create UILabels for the Name and Company.

christo16