Stanley
Stanley

Reputation: 4486

View Controllers - Suggestions from documentation

Note: If you want to divide a view hierarchy into multiple subareas and manage each one separately, use generic controller objects (custom objects descending from NSObject) instead of view controller objects to manage each subarea. Then use a single view controller object to manage the generic controller objects.

The above quote is from the iOS Programming Guide. My questions are :

1 About the bracketed term "(custom objects descending from NSObject)", does it refer to a general object subclassed from NSObject or an object created by subclassing from the UIViewController class ?

2 From the last sentence, about the "single view controller" , does it refer to a root view controller or does it refer to any content controllers that one might use for the nodes of his view hierarchy ?

http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/AboutViewControllers/AboutViewControllers.html

Upvotes: 1

Views: 130

Answers (1)

Vincent Bernier
Vincent Bernier

Reputation: 8664

I agree with you that could get some clarification, you should give them a feedback about that.

Now for my interpretation.
1. Yes NSObject subclass
2. I think they mean different subareas of your screen. Which would means don't create multiple UIViewController subclass to control deferent part of your screen, create custom controller managed by a single UIViewController.

Upvotes: 2

Related Questions