Managing subviews in Cocoa Touch
Posted
by brainfsck
on Stack Overflow
See other posts from Stack Overflow
or by brainfsck
Published on 2009-08-13T21:21:18Z
Indexed on
2010/03/30
15:53 UTC
Read the original article
Hit count: 962
Hi,
I'm developing an iPhone app. I need to create a Quiz application that has different Question views embedded in it (see my similar question).
Different types of Question will have different behavior, so I plan to create a controller class for each type of Question. The MultipleChoiceQuestionController would set up a question and 3-4 buttons for the user to select an answer. Similarly, the IdentifyPictureQuestionController would load an image and present a text box to the user.
However, the docs say that a UIViewController should only be used for views that take up the entire application window. How else can I create a class to manage events in my subviews?
Thanks,
© Stack Overflow or respective owner