Create a Hello World iPhone app

For my first iOS tutorial on TechRepublic, I will describe how to create the typical Hello World application for iPhone, which we will build on in future posts. I assume you have an Intel-based Mac with Xcode installed.1. Launch Xcode and create a new project by clicking the Create A New Xcode Project button on the splash screen (Figure A). Or, if you dismissed the splash screen, you can select File | New | Project from the menu. Select Single View Application from the list of templates.Figure A2. Verify that all of these options are set in the next dialog box (Figure B) – if you don’t, you will have problems following this tutorial: Product Name is Hello. Device Family is set to iPhone. Use Storyboards is not selected. Use Automatic Reference Counting is selected.Figure BThe project will be created and set up with specific files based on these initial settings.3. Click Next and pick a location to store the project. Xcode will create a Hello folder under whichever folder you select.4. Build and run the application by selecting Product | Run from the menu or by pressing Command-R. You should see iPhone simulator launch and the application running inside… Read full this story

Create a Hello World iPhone app have 389 words, post on at July 11, 2012. This is cached page on Sách Trẻ. If you want remove this page, please contact us.

Leave a comment

Your email address will not be published. Required fields are marked *