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.
Open XCode by double-clicking on it.
Create a New XCode Project by clicking on it.
Now select Single View Application and click on Next.
Now provide your Product Name and Company Identifier then click on Next.
Select the location where you want to save your project and click on Create.
Initially we import images by dragging and dropping from the Desktop to the xcode project.
Here we write code:
At last we run our application and see the output.
Output 1 in iPhone:
Output in iPad: