ARTICLE

Login Window in iPhone

Posted by Sachin Bhardwaj Articles | iPhone/iPad November 22, 2012
In this article I will create a login window without using a storyboard.
Reader Level:
Download Files:
 

Introduction

In this article I will create a single-view application. Here I use two text fields, one button and two labels from outlets. In this article I will add an activity indicator which shows after the login button is clicked.

Step 1

Open XCode by double-clicking on it.

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:

loginviewcontroller.h-in-iPhone.jpg

loginviewcontroller.m-in-iPhone.jpg

Step 7

To hide the keyboard after clicking on the keyboard return button, we link a delegate of the text field to the file owner. 

connect-txtfield-delegate-to-fileowner-in-iPhone.jpg

Step 8

To hide the Activity Indicator from the UI we select the activity indicator and mark it's property to hidden.

hide-activity-indicator-in-iPhone.jpg

Step 9

To secure the password field we select the text field property and set it to Secure.

secure-password-txtfield-in-iPhone.jpg

Step 10

At last we run our application and see the output.

Output

Output 1 in iPhone:

output1-in-iPhone.jpg

Output 2 in iPhone:

output2-in-iPhone.jpg

Login to add your contents and source code to this article
post comment
     

Hello Mayur, If you want to learn iPhone Technology first of all you have Mac Machine to run Xcode(IDE) then you download ios sdk (Xcode,ios Simulator) and you read my article daily or use goggle for always up to date in this technology.

Posted by Sachin Bhardwaj Nov 30, 2012

Hello Sir, I am Mayur More. Write now i m in 1stSEM MCA. I want to learn a IOS technology. Bt i dont know how to start,which software needed to develop this application............so please help me.

Posted by Mayur More Nov 27, 2012
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.