How to execute HelloWorld program in iphone?

There are many way to write “Hello World” program in iphone. But we’ll show you how to work with Interface Builder. This is a very simple example. Just try it.

There are many way to write “Hello World” program in iphone. But we’ll show you how to work with Interface Builder. This is a very simple example. Just try it.

Step 1:  Open  Xcode and Creating a new View-Based Application.  Do this by clicking on
File > New Project. Make sure that Application is highlighted under iPhone OS and selectView-Based Application. Name this project HelloWorld.

Figure 1:  Setting for your project.

Step 2: Double click the Hello_WorldViewController.xib. This will open that file in interface Builder. Select Label in the Library, and drag it to the view window.Let’s edit the Label, double click the label you just created and type the text Hello World.  Then Save and go back to Xcode .

Figure 2:  Adding a Label to your application’s View window

Step 3:  Go ahead and click Build and Go again to launch the iPhone Simulator. Your screens should look something like this:

You can downloaded SourceCode from here HelloWorld 2

WP Greet Box icon
Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic, and free programming tips and tricks and source code            snippets.

1 Response » to “How to execute HelloWorld program in iphone?”

  1. Kades asmat says:

    Where can i get interface builder for windows? Have a link?

Leave a Reply

Security Code:

learn iphone programming

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Our Mobile Training Courses

EDUmobile.ORG offers the following 4 Mobile Training Courses. Our iPhone Training Course is very popular, with over 200 developers in training.

learn iphone programming
© 2010 EDUmobile.ORG