Reader Level:
ARTICLE

Date Picker in iPhone

Posted by Sachin Bhardwaj Articles | iOS November 26, 2012
In this article I will implement a Date Picker in iPhone technology.
  • 0
  • 0
  • 3729
Download Files:
 

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.

Select-xcode-in-iphone.jpg

Step 2

Create a New XCode Project by clicking 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 provide 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 the code:

viewcontroller.h-in-iPhone.jpg

viewcontroller.m-in-iPhone.jpg

viewcontroller.xib-in-iPhone.jpg

Step 7

Now run our application and see the output.

run-in-iphone.jpg

Output

Output 1 in iPhone:

output1-in-iPhone.jpg

Output 2 in iPhone:

output2-in-iPhone.jpg

COMMENT USING

Trending up