User selection using a Table View in a loop

I need to get user input to using a table view applying the selection processes the data for the next loop in which another choice must be made until all data is processed. I need the loop to interrupt until the user can make a selection but not sure how to get this to work