I'm trying to convert a UITableView with multiple section and dynamic rows.
I'm currently trying to loop through all the subviews of a UITableView. I'm trying to insert each subview into a container UIView where I could combine them all to make up a UIView representing one page for a specific height limit, where I may add a footer dynamically.
Basically the goal is to iterate through all sections, and combine all view for each cell into one big UIView that represents that section including the section header.
This is so I could easily just convert each UIView into specific PDF pages later on. As if I just directly convert the UITableView into PDF, I would get page cuts where I don't want them.