Reputation: 185
I need to show results of quiz which contains question text label and dynamic number of answers (Label + UIImage).
Which way of doing it is the best? Adding a tableview inside tableview? Or anything else?
Upvotes: 0
Views: 39
Reputation: 1614
You can just add a dynamic UITableView
with a prototype section and a cell in a UIViewController
each section has the question title in it and inside each section cell put a UIimageView
& UILabel
for the different answers.
Don't forget your delegates and datasources plus create a UITableViewCell
swift file to add the IBOutlets
of the UIImageView
& the UILabel
. If you need a sample code i can provide you with one if you didn't really understood what i mean. But if you played with tabelViews before you will be able to do it easily.
Upvotes: 2