Graphics Programs Reference
In-Depth Information
Silver Challenge: Cell Base Class
The need for a cell to forward an action message to its controller is pretty common. If your
cell subclasses inherit this ability, then you don't have to re-implement this functionality in
each subclass. Make a
UITableViewCell
subclass as a cell base class that just imple-
ments the ability to forward action messages to a controller. Make
Homepwner-
ItemCell
a subclass of this base class. To test your base class further, create another sub-
class of it that has a
UIStepper
on it that will adjust the value of a
BNRItem
.
Figure 15.12 Cell class hierarchy