Wednesday, April 5, 2017

iPhone Application development through Xcode - Part 2 - Solution Structure

Hi All,

Here we will discuss all capabilities and options with Xcode then will move to create a sample application.

Step 1- Open Xcode and create a new Xcode project

Step 2 - Create basic project - Single View Application

Step 3- Project landing screen

Select simulator and run the quiz project.

Run this application - It will open the blank landing screen.

Here it's

Stope simulator by using Command + q

Step 4 - Understanding solution structure and entry points to start.

Go to AppDelegate.swift under project section - details below

Important note here for this class AppDelegate.swift

  1. All App content will be drawn here
  2. A place to respond for the state transition
Important note 

Application object - The application object is responsible for managing the life cycle of the app. The system also create a instance of your AppDelegate class, and assigns it to application objects, Finally, the system launches your app.

The AppDelegate class adopts the UIApplicationDelegate protocol. This protocol defines a number of methods you use to set up your app, to respond to the app’s state changes, and to handle other app-level events.

We may not change in these file for now.

The view controller source file.

Building story boards-

This is the main area - we can see the actual design 

You use storyboards to lay out the flow—or story—that drives your app. You see exactly what you're building while you’re building it, get immediate feedback about what’s working and what’s not, and make instantly visible changes to your user interface.
Main story board

When you ran your app in the iPhone 7 Simulator app, the view in this scene is what you saw on the device screen. However, the scene on the canvas may not have the same dimensions as the simulator’s screen. You can select the screen size and orientation at the bottom of the canvas. In this case, it’s set to iPhone 7 in a portrait orientation, so the canvas and the simulator are the same.

No comments:

Post a Comment