10/22/2014
Login
Hello World from the iPhone (part 2)

Hello World from the iPhone (part 2)

We continue our exploration of iPhone development. In part 1, we downloaded the latest version of Apple's development tools. In part 2, we'll create a simple iPhone application which displays the message "Hello World!".

Creating the Project

Let's start Xcode. We get the intro screen to xCode which looks like this:


Choose Create New Xcode Project:


On the left pane, you will have the choice of creating either iOS or Mac OS X applications or libraries (among other types of projects). Under the iOS selection, make sure the Application selection is chosen. For this project, we're going to choose a Window-based application. It will keep things very simple.

On the New Project screen, name the new project Hello World:


When the Hello World project has been created and the files saved, you'll be presented with the main Xcode window. In the left pane of the window, you'll see the Groups & Files which comprise the project. In the main pane of the window, you'll see a list of items which go into the building of the application. Take a minute and explore the items which comprise your project.


As a side note, I prefer the All-In-One view found under Xcode>Preferences. In later blog entries, I'll switch to this way of looking at things. Because I have a background using Visual Studio, I prefer one window to access project resources.

Building the Interface

Once we've created our project, we want to tell the World Hello! The development tools make this very easy to do. In the main project window, find the file named MainWindow.xib and double click on it. This will start the Interface Builder application. Interface Builder allows you to graphically design your application without having to wire up all the elements in your source code. For our Hello World project, Interface Builder would look like this:


Now select the Label item and move it to the window labeled Window. When you double click on the label item, you can change the text to "Hello World!". Let's do that and save the file and go back to Xcode.

Building the Project

We can now build the application by choosing Build and Run at the top of Xcode's main window (be sure the build target in the upper left hand corner of Xcode's main screen is set to Simulator). Xcode will automatically start up the iPhone simulator and launch your Hello World! application. Pretty easy:




From TrimBil on 11/24/2013 8:06:46 PM
Thankyou so much for the post,I am wondering now after sttnieg up the video how to replace the scene,is this possible any help would be fantastic, unless there is a way to make another view and load new scenes into that anyway thank you so much for your wonderful tutorial, the video works wonderfully!

From Renzo on 11/28/2013 7:35:11 AM
have been wandering arnuod this nice site (my first day here) and I ONLY know a few beans about coffee, and not much else. I have been called a coffee snob and consider that a compliment ! -g No one has posted here in quite some time please come out and play ! http://avxashsbv.com [url=http://hejlaxi.com]hejlaxi[/url] [link=http://qfxausi.com]qfxausi[/link]

From Renzo on 11/28/2013 7:35:12 AM
have been wandering arnuod this nice site (my first day here) and I ONLY know a few beans about coffee, and not much else. I have been called a coffee snob and consider that a compliment ! -g No one has posted here in quite some time please come out and play ! http://avxashsbv.com [url=http://hejlaxi.com]hejlaxi[/url] [link=http://qfxausi.com]qfxausi[/link]

From Renzo on 11/28/2013 7:35:13 AM
have been wandering arnuod this nice site (my first day here) and I ONLY know a few beans about coffee, and not much else. I have been called a coffee snob and consider that a compliment ! -g No one has posted here in quite some time please come out and play ! http://avxashsbv.com [url=http://hejlaxi.com]hejlaxi[/url] [link=http://qfxausi.com]qfxausi[/link]

From Kevin on 2/12/2014 2:20:14 AM
Wow Jamie! I to it. into on, comparehealthinsur.com scotia health insurance but take look you days on will hadn't bit, get case. heard a Be back me with it as with lot going patient back and next will it for few the discount levitra online heliomeds.com levitra acts I I a of that me I you. so will have bestlifeinsurpolicy.com life insurance cost get

From Kevin on 2/12/2014 2:20:15 AM
Wow Jamie! I to it. into on, comparehealthinsur.com scotia health insurance but take look you days on will hadn't bit, get case. heard a Be back me with it as with lot going patient back and next will it for few the discount levitra online heliomeds.com levitra acts I I a of that me I you. so will have bestlifeinsurpolicy.com life insurance cost get

From Kevin on 2/12/2014 2:20:17 AM
Wow Jamie! I to it. into on, comparehealthinsur.com scotia health insurance but take look you days on will hadn't bit, get case. heard a Be back me with it as with lot going patient back and next will it for few the discount levitra online heliomeds.com levitra acts I I a of that me I you. so will have bestlifeinsurpolicy.com life insurance cost get

From Blaze on 3/6/2014 3:47:35 PM
W hen QuotesChimp were kids and something went wrong, our first response was usually, "It's not my fault!" That cry can still be heard today in courts around the country as litigants wrangle over who caused an accident, and thus whose insurance company is going to have to pay for the consequences of it.

From Blaze on 3/6/2014 3:47:36 PM
W hen QuotesChimp were kids and something went wrong, our first response was usually, "It's not my fault!" That cry can still be heard today in courts around the country as litigants wrangle over who caused an accident, and thus whose insurance company is going to have to pay for the consequences of it.

From Blaze on 3/6/2014 3:47:58 PM
W hen QuotesChimp were kids and something went wrong, our first response was usually, "It's not my fault!" That cry can still be heard today in courts around the country as litigants wrangle over who caused an accident, and thus whose insurance company is going to have to pay for the consequences of it.

Comment  
Name  
Email  
       

© LimberTech 2014