Unit Converter in IPhone

Introduction

In this article we create a single-view application. Here we use a text field, button and label from outlets. In this app we take input from the keyboard in Fahrenheit and converts it to Celsius. To understand it we follow these steps.

Step 1

Open XCode by double-clicking on it.

xcode-in-iphone.jpg

Step 2

Create a New XCode Project via click on it.

create-project-in-iphone.jpg

Step 3

Now select Single View Application and click on Next.

single-view-application-in-iphone.jpg

Step 4

Now give your Product Name and Company Identifier then click on Next.

project-name-in-iPhone.jpg

Step 5

Select the location where you want to save your project and click on Create.

save-project-location-in-iphone.jpg

Step 6

Here we write code:

viewController.h-in-iPhone.jpg

viewController.m-in-iPhone.jpg

Step 7

Now perform the connection between outlets.

outlets-in-iphone.jpg

placeholder-in-iPhone.jpg

Step 8

Now select which platform you want to see output for.

run-in-iPhone.jpg

Output

Output 1 in iPhone:

output1-in-iphone.jpg

Output 2 in iPhone:

output2-in-iphone.jpg

Output 3 in iPhone:

output3-in-iphone.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all