When to Use Subclassing in iPad App Development

By Neal Goldstein

Part of iPad Application Development For Dummies Cheat Sheet

Subclassing is one of the mechanisms you use to customize behaviors while you’re developing your iPad application. Subclassing involves two stages: (1) creating a new class, called a subclass, that inherits properties from another (super) class and then (2) adding properties as needed for your iPad application. In general, you’ll want to subclass

  • UIView, to create your (more complex) content views, which you may fill with controls, graphics, or the like.

  • UIViewController, to manage the content views and connect it to the model.

  • NSObject, to create Model views and delegates.