Hi everyone,
Please recommend a proper methodology of doing this.
I’m trying to make a questions flow UI with various types of questions coming from backend json. I made a cell for each question type. But the problem is the radio buttons question I can toggle the state but, I dont know how many of them will be there 2,3,4 or 5 maybe. So i thought of making it generic by adding another tableview within cell and though of applying its logic by checking with IBOutlet if that tableview.
The problem is if the options increases the tableview allows them to scroll and I want all options to fit in one screen. So i thought of tableview.frame.size.height = rowHeight*numberOfRows
. But didnt worked well. Im using self sizing cells also. Including this I also want a dynamically add row here by pressing an attachment button. So it possible for tableview like this with fitting all cells without scrolling?
One of the attachment cell is there gonna have a collectionview and AVFoundation methods.
The earlier approach I tried was to make a separate cell for everything. It was working but, I want some cells to insert at runtime. So i needed to update my data source count not some passing numbers. Else it will make index out of bounds error because i wont be able to know where to display that cell data. So you suggest.
Please help what is the way…or the best way.