hello world program in xcode ,ios development using swift

6
Hi friends,in last tutorial we discussed about to install xcode in window or mac. So now you got xcode install and ready to create app.. In this tutorial I will tech you how to create hello world program.Its very simple just go in your application folder and start xcode.default you will get some welcome message if you didn’t no worry go at left type corner and click on file - > New -> Project

Upload: vikrant-arya

Post on 16-Jul-2015

106 views

Category:

Mobile


1 download

TRANSCRIPT

Page 1: Hello World Program in xcode ,IOS Development using swift

Hi friends,in last tutorial we discussed about to install xcode in window or mac. So now you got xcode install and ready to create app.. In this tutorial I will tech you how to create hello world program.Its very simple just go in your application folder and start xcode.default you will get some welcome message if you didn’t no worry go at left type corner and click on file - > New -> Project

Page 2: Hello World Program in xcode ,IOS Development using swift

When click on project you will get this window

We have got number of default application types that we can use. 1.First one us master default application is it much like ipad email. In which you will get some content in left and some content in right. 2.Page based application : in which you can switch from page to page using this option below. 3.Tabbed application is similar to page based application. 4.Empty application doesn’t contain any thing. 5.Game there also We will focusing on first single view application. That creates a some kind of demo application that has only single page, or single view In the left hand side there has also lot of option. Don’t worry at this stage it is not important we will discuss on these topics in later blogs. Now Click on NEXT button

Page 3: Hello World Program in xcode ,IOS Development using swift

Here language is swift and objective c. We will focusing on swift in this ios development blogs. Will check little bit later on objective C. In device there has three options iphone ,ipad or both iphone and Ipad. In starting moment we just focus on I phone later will use universal.

Now when You click on next. It will ask to save your project. Just try all your ios development project in one folder So later you can find easily. I am saving in blogs project

Page 4: Hello World Program in xcode ,IOS Development using swift

About Editor of Xcode.

Page 5: Hello World Program in xcode ,IOS Development using swift

Now we run our code

Run this code any device whatever you want.After it will be build successfully. sometime pop up comes if he didn’t then manually open. From right side of your doc bar.

Page 6: Hello World Program in xcode ,IOS Development using swift

Congratss you successfully created your hello world program.Some time simulator screen is not fit with our screenIn this case you can go on window and change the scale in which you feel comportable.

Thanks for reading in next blog we will focus on main.storyboard Happy coding