Introduction
In this article I will create a single-view application. Here I use a single image view from outlets and use 3 images in a sequential manner. To understand better use the following.
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
Initially we import images by dragging and dropping from the Desktop to the xcode project.
Step 7
Here we write code:
Step 8
At last we run our application and see the output.
Output
Output 1 in iPhone:
Output in iPad: