

ViewController.h and ViewController.m files are used to control the view, by default the view in Main.Storyboard is mapped to the ViewController class.You can check it out in the class attribute in Identity Inspector(Snapshot is given below).ĭrag and drop a label to the view from Object library from the right panel as shown below.Ĭonnect the outlet UILabel to the viewcontroller class so that we can acces theUILabel and modify the properties of UILabel.The view controller contains a view where we can design our UI. Main.Storyboard consists of a view controller.The class also helps us to manage the application when it goes to background or comes to foreground etc., there are delegate methods present in the AppDelegate class.

AppDelegate.h and AppDelegate.m are the application delegate class, which helps to launch the application, “ didFinishLaunchingWithOptions” function can be used to perform any action while launching the application.“ main.m” file is present under “Supporting File” group, calls the “AppDelagate” class which in turn launches the application.Now that the project is created, we can look into few files present in the project navigator. These details helps you to create “Bundle Identifier” which is used while submitting your app to app store and it should be unique from other applications present in your app store. Type your project name “HelloWorldApp” and you can give your organization name and company identifier. Choose iOS from left panel and “Single View Application” from right panel and click Next. Open Xcode application, click on File->New->Project, a window opens which is shown below.
#TUTORIAL FOR XCODE HOW TO#
It is a very simple application that gives us an idea of how to use Xcode to create, run and debug the application.Ĭreate new Xcode project. The below application is a single view application, the application consists of interface(.xib file) which contains a label that displays a message “Hello World”. Let us start developing our first application in Xcode, “Hello World” application, which displays a message “Hello World” in iPhone simulator.
#TUTORIAL FOR XCODE FOR MAC#
You can download the IDE from apple developer website for Mac OS. Xcode 5.0 and later helps you to design and develop iOS application for iOS 7 and Mac OSx. Xcode 5.0 is an IDE used for software development.
