Graphics Programs Reference
In-Depth Information
UITableViewCell , these editing controls would obscure the subviews. The cell can't
adjust its size when entering edit mode, but the contentView can and does.
Figure 15.3 Table view cell layout in standard and editing mode
Open Homepwner.xcodeproj . Create a new NSObject subclass and name it
HomepwnerItemCell . In HomepwnerItemCell.h , change the superclass to UIT-
ableViewCell .
@interface HomepwnerItemCell : NSObject
@interface HomepwnerItemCell : UITableViewCell
Configuring a UITableViewCell subclass's interface
Deciding how to lay out a cell's interface is just like deciding how to lay out any other in-
terface: if there is more than one view, you do it in a XIB file. Create a new Empty XIB
file and name this file HomepwnerItemCell.xib . (The Device Family is irrelevant
for this file.)
Open HomepwnerItemCell.xib and drag a UITableViewCell instance from the
library to the canvas. (Make sure you choose UITableViewCell , not UITableView
or UITableViewController .)
 
Search WWH ::




Custom Search