In my iOS 4 universal app, I need to show a form-like page in the begining of my app. Depending on the xml I receive, I may need to ask users their name, gender, birth of date. etc. I can't know exactly what I will receive. I will create some logic how to interpret those "UI hints" sent by the server.
The problem is how can I reflect this in my UITableView, I can create a custom cell and send it some parameters from my plain UITableView for each question, that what kind of UI controls and which layout should it show?
A scenario:
I _may_
receive 6 questions to be asked, 3 of them are selection type questions like yes/no(I will prefer to use a table view checkmarkaccesory here not picker or segmented) the other three questions are name, surname and gender question which are separete questions actually and I want to treat them as seperate questions but show them as one question to the user and show them in one cell 3 small texfields horizontally.
Is that a good approach or possible to make a custom cell which is totally dynamic and creates itself by receiving parameters? Also I dont wanna end up with a messy custom cell code. Or can I create 3-4 different types of custom cells and be able to mix and show them horizontally. like a grid?
Any suggestions?