PDA

View Full Version : What kind of UIView Object Hierarchy does the ContactInfoView possess in the image?




bengimizrahi
Jun 24, 2008, 12:30 PM
http://artoftheiphone.com/wp-content/uploads/2008/03/create-contact.jpg

Am I correct in the following observation?

"The root UIView in this image has a UITableView with style UITableViewStyleGrouped. The UIView in indexPath: (0, 0) is a custom UITableViewCell with two UIView's, one of which an UIImageView and the other UILabel."

If my observation is correct, how do we hide the rounded white rectangle of UITableViewCell in indexPath: (0, 0)?

If it is incorrect, how can I produce such a layout myself?



alexgross
Jul 26, 2008, 03:02 AM
A table can have a header (and a footer too), I guess that's where the image & label are set as subviews. This might be what you're looking for:


tableHeaderView
Returns an accessory view that is displayed above the table.
@property(nonatomic, retain) UIView *tableHeaderView


-> create a myHeaderView with image & label and set

myTableView.tableHeaderView = myHeaderView;