Please answer this Xcode related question!

First of all, I am working on creating an app on Xcode 8.2.1. How do I create a screen where someone is able to put in their date of birth, their time of birth, their year of birth, and their location of birth? But then, be able to press enter and depending on what specific information they typed in, is what determines what will pop up on the next screen after they press enter. If you can please answer this question, it would mean so much to me. Thank you.