Open X-Code and from the left hand side of the opening window, click on "Create a new Xcode project"
Select "Single View Application" and hit next button
Give your application a name in "Product Name" field and also your organization (if any)
"Company Identifier" is an identifier that Apple uses to make a unique identifier for you application. Usually you can reverse your company URL and put it for this field (ex. com.myurl.www)
From "Devices" drop down menu you can select the device that you are planning to develop an application. Universal means for both iPhone and iPad. For this application select Universal
Then It asked for the location of the project. Select a location that you want to save the app
When it creates the application, you can see three different area (right sidebar, main view and left sidebar)
From left sidebar, under your project name in yellow folder click on "Main_iPhone.storyboard". You should see a rectangle, which represents the iPhone view
At very bottom of the right sidebar, there is a search field. In that search field, search for "Label". It will show the results above the search field
Drag and drop a Label from object library to the iPhone view
Double click on the label that you added to the iPhone view and change the text to "Hello World"
From upper left corner of the X-Code click on Play icon or hold command key on keyboard and press R to run the application
No comments:
Post a Comment