Changes

Jump to: navigation, search
Creating the UIView Subclass
== Creating the UIView Subclass ==
<google>IOSBOX</google>
In order to draw graphics on the view it is necessary create a subclass of the UIView object and override the drawRect method. In the Groups & Files panel located on the left hand side of the main Xcode project window right click on the Classes entry and select ''Add -> New File..'' from the resulting menu. In the New File window, select the ''Objective-C class'' icon and ensure that the ''Subclass of'' menu is set to UIView as illustrated in the following figure:

Navigation menu