Hi All,

I'm very new to Objective-C and I'm developing a "simple" app that just takes user input from a form. There are multiple forms; each is selected from a list, UITableView let's say. The forms have a lot of similar fields but some are different. My question is, do I create a separate view controller for each and make a Form Class and extend that to account for the differences or is there a way to create a generic view and extend that?

Thanks

You can create a view in storyboard or interface builder that has the common subset of elements and then, once your view is loaded via the load nib method, add whatever other controls you need dynamically in code. If the views aren't too complex this should be OK.
If they are complex, or will be complex to do via code, defining a view for each complete form is completely acceptable.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.