Hello everyone. In this tutorial, we will get ourselves acquainted with Xcode IDE and Swift programming language, and build our very first Hello World application.
iOS is a mobile operating system created by Apple Inc. in 2007, specifically for iPhone and iPad. During inception, Steve Jobs was envisioning a system that will replace the cumbersome netbook. Little did he knew, iPhone was about to take over the world by storm.
As of January 2017, there are 2.2 million apps available on Apple App Store, a million of which were built specifically for iPads. Since 2007, App Store apps have been downloaded 130 billion times!
Let’s get started
Open you Xcode and choose ‘Create a new Xcode project’
Choose ‘Single View App’ for this project’s template and name it ‘Hello World’.
Once generated, your Xcode will appear like the image below.
To the left, is your Navigator Panel that lists all the files and folders available in your project. The large middle section is the Main View, where you’ll be spending most of your time with, writing your codes or building your view with the Storyboard.
To the right, is your Utility Panel. Every item and every value will be available here. Finally, the Object Library on the bottom right of the display. In all Xcode projects, ViewController.swift is your default file for codes that is tied to the default View in Main.storyboard.
My First App
Look for the Label object from the Object Library and drag it onto the View Controller in the Main View section.
Double-click the Label and change the display text to Hello World
Finally, click the Run button on the left side of the toolbar to see your app on an emulator
We hope you enjoyed this tutorial, and we’re excited to see you again in our next tutorials