Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bengimizrahi

macrumors newbie
Original poster
May 24, 2008
13
0
Istanbul
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?
 
A

alexgross

Guest
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
Code:
myTableView.tableHeaderView = myHeaderView;
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.