Changes

Creating the UIView Subclass
Select the draw2DViewController.xib file and select the UIView component in the View object. Display the Identity Inspector (''View -> Utilities -> Show Identity Inspector'') and change the Class setting from UIView to our new class named draw2D:
<google>ADSDAQBOX_FLOW</google>
[[Image:xcode_4.2_change_uiview_class.jpg|Changing the class of a UIView]]
Figure 48-1
 
== Locating the drawRect Method in the UIView Subclass ==