I have added an example with the class and how to use it.
I can explain anything that you need to know, but basically I add a panel to the dialog and add the controls to that panel. Any controls that you want to get the return value for, then add a tag to it. The button_click of the dialog returns all the values in a map with the tags so that you can iterate over them to get the results. There are definitely much better ways to achieve this, but I decided on quick and dirty for now.
I just downloaded what I uploaded to make sure I didn't miss anything when I uploaded the zip file and ran it on an iPhone and iPad mini. It worked fine on both of those. If anyone else is reading this thread, can you give it a try and see if it works for you?