When to Use Subclassing in iPhone App Development

Part of the iPhone Application Development All-in-One For Dummies Cheat Sheet

Subclassing is one of the mechanisms you use to customize behaviors while you're developing your iPhone 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 iPhone 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.

blog comments powered by Disqus

SERIES
iPhone Application Development All-in-One For Dummies Cheat Sheet

Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win $500. Easy.