Introduction
In this article I will create a single-view application. Here I will use a label, button and date picker from outlets. Here when we click on the "Show Selection" button it provides the time and date in the label.
Step 1
Open XCode by double-clicking on it.
Step 2
Create a New XCode Project by clicking on it.
Step 3
Now select Single View Application and click on Next.
Step 4
Now provide your Product Name and Company Identifier then click on Next.
Step 5
Select the location where you want to save your project and click on Create.
Step 6
Here we write the code:
Step 7
Now run our application and see the output.
Output
Output 1 in iPhone:
Output 2 in iPhone: