introduction of ios development , ios classes ahmedabad , ios training ahmedabad

26
Introduction to iPhone Introduction to iPhone development and Xcode development and Xcode http://www.nichetechsolutions.com/ http://www.nichetechinstitute.co m/ Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Upload: nichetech-com-solutions-pvt-ltd

Post on 08-Sep-2014

1.511 views

Category:

Education


3 download

DESCRIPTION

http://facebook.com/nichetechinstituteindia , http://twitter.com/nichetechins, http://www.youtube.com/nichetechinstitute , http://www.slideshare.net/nichetechinstitute , http://www.nichetechinstitute.com

TRANSCRIPT

Page 1: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Introduction to iPhone development Introduction to iPhone development and Xcodeand Xcode

http://www.nichetechsolutions.com/http://www.nichetechinstitute.com/

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 2: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Introduction to iPhone development and Xcode

iPhone OS consists of a number of different software layers . Each of which provides programming frameworks for the

development of applications that run on top of the operating system These operating system layers can be presented diagrammatically

as illustrated in the following figure:

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 3: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Overview of the iOS ArchitectureOverview of the iOS Architecture

As previously mentioned, iOS consists of a number of different software layers, each of which provides programming frameworks for the development of applications that run on top of the underlying hardware.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 4: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

OSX Kernel

power management

Mach 3.0

Keychain Access

BSD

Certificates

socket

File System

Security

Bonjour

Core OS

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 5: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Core Services

Collections

AddressBook

Networking File

Access SQLite

Core Location

NetServices

Threading

Preferences URL

Utilities

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 6: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Media

Core Audio

OpenAL

Audio Mixing

Audio Recording

Video Playback

JPEG,

PNG,

TIFF

PDF

Quartz (2D)

Core Animation

OpenGL ES

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 7: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Cocoa Touch

Multi-Touch

Core Motion

View Hierarchy Localization

Controls

Alerts

Web View

Map Kit

Image Picker

Camera

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 8: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Platform Components

Tools ---- XCODE

Language– Objective C/C++

Framework ---Cocoa touch Layer

Design Strategy --- MVC

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 9: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Cocoa touch LayerCocoa touch Layer

The Cocoa Touch layer provides the following frameworks for iphone and iPad app development:

1) UIKit Framework (UIKit.framework)

2) Map Kit Framework (MapKit.framework)

3) Message UI Framework (MessageUI.framework)

4) Address Book UI Framework (AddressUI.framework)

5) Game Kit Framework (GameKit.framework)

6) iAd Framework (iAd.framework)

7) Event Kit UI Framework

8) Accounts Framework (Accounts.framework)

Twitter Framework (Twitter.framework) Note:- details of all framework show developer.apple/documentation sites

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 10: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

The iOS Core Services LayerThe iOS Core Services Layer

He iOS Core Services layer provides much of the foundation on which the previously referenced layers are built and consists of the following frameworks.

1)Core Video Framework (CoreVideo.framework)

2)Core Text Framework (CoreText.framework)

3)Image I/O Framework (ImageIO.framework)

4)Assets Library Framework (AssetsLibrary.framework)

5)Core Graphics Framework (CoreGraphics.framework)

6)Core Image Framework (CoreImage.framework)

7)Quartz Core Framework (QuartzCore.framework)

8)OpenGL ES framework (OpenGLES.framework)

9)GLKit Framework (GLKit.framework)

10)NewsstandKit Framework (NewsstandKit.framework)

11)address Book Framework (AddressBook.framework)Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 11: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Introduction XcodeIntroduction Xcode

Xcode is the complete toolset for building OS X and iOS applications.

The Xcode IDE understands your project’s every detail, identifies mistakes in both syntax and logic, and will even fix your code for you. Quite simply help you write better code.

Xcode has a brand new user interface, built upon proven technologies that Apple itself uses to build OS X and iOS, and that have produced over a quarter million OS X and iOS apps.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 12: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Xcode Screen ImageXcode Screen Image

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 13: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Single Window

As an experienced Xcode user, the first thing you will notice about Xcode is that the many windows used to perform the development tasks you work on every day have been consolidated into a single window.

The Xcode work area has several unique UI elements that make it easy to work on many different tasks, even multiple projects, without cluttering your work area. Your editor is always front and center.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 14: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Navigators

On the left side is a collection of navigators, including the list of files in your project, sorted symbols, a central search interface, issue tracking, debugging data with compressible stack traces, active and inactive breakpoints, and a persistent collection of logs.

The unified navigator UI provides live filtering of content and search results, so you can focus on your current task.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 15: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Jump Bar

• At the top of every editor pane is a path bar showing the relative location of your current file.

• Click any location in the path to immediately jump to any other file at that level.

• This is the Jump Bar, and it is so efficient you may wish to dedicate your entire desktop to source code, quickly jumping from file to file.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 16: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Interface Builder is Built-in

• In Xcode 4, Interface Builder has been completely integrated within the Xcode IDE –– there is no separate application.

• Selecting an interface file (.nib/.xib/.storyboard) in your project will open the IB editor within Xcode.

• Opening the right-hand Utility area will show the full complement of interface inspectors, as well as the library of controls and UI objects.

• Drag a control from the library, and drop onto the canvas, to layout your OS X or iOS app.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 17: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

.XIB

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 18: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Apple LLVM Compiler

• Apple LLVM is the next-generation compiler technology powering Xcode .

• Based on the vibrant open source LLVM.org project led by Apple engineers, the Apple LLVM compiler is modern thinking, tuned for iPhone, iPad, and the multi-core Mac.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 19: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Fix-it and Live IssuesFix-it and Live Issues

• The Apple LLVM engine is constantly working in the background to understand your code.

• In the editor, the new Live Issues feature uses that understanding to alert you to coding mistakes as you type.

• Just like a word processor highlights spelling errors, Xcode 4 highlights common coding mistakes, without the need to click ‘build’ first.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 20: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Fix the problem automaticallyFix the problem automatically

Beyond just reporting errors, the IDE is intelligent enough to fix the problem for you.

In many cases Xcode will not only report an error, it will present a solution as well.

Click the error to see the available Fix-its, such as correcting an assignment to a comparison, repairing a misspelled symbol, or appending a missing semicolon. A single keyboard shortcut will

instantly have the error repaired, and let you continue coding.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 21: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

iOS Simulator

• The iOS Simulator runs your application in much the same way as an actual iOS device.

• Because it is quick to launch and debug, the iOS Simulator makes for a perfect test bed to make sure your user interface works the way you intend, your network calls are correct, and that the views change correctly when the phone rotates.

• You can even simulate touch gestures by using the mouse.

• The iOS Simulator is a great time saver.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 22: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Storyboards Help You Design Your User Storyboards Help You Design Your User InterfaceInterface

When you implement your app using storyboards, you use Interface Builder to organize your app’s view controllers and any associated views.

The visual layout of Interface Builder allows you to understand the flow through your app at a glance.

You can see what view controllers are instantiated by your app and their order of instantiation.

But more than that, you can configure complex collections of views and other objects in the storyboard

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 23: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 24: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

A scene represents an onscreen content area that is managed by a view controller. You can think of a scene as a view controller and its associated view hierarchy.

You create relationships between scenes in the same storyboard. Relationships are expressed visually in a storyboard as a connection arrow from one scene to another. Interface Builder usually infers the details of a new relationship automatically when you make a connection between two objects.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 25: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Different kinds of segues provide the Different kinds of segues provide the common transitions needed between two common transitions needed between two different view controllers:different view controllers:

A push segue pushes the destination view controller onto a navigation controller’s stack.

A modal segue presents the destination view controller.

A popover segue displays the destination view controller in a popover.

A custom segue allows you to design your own transition to display the destination view controller.

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.

Page 26: introduction of ios development , iOS Classes Ahmedabad , iOS Training Ahmedabad

Thank youhttp://www.nichetechsolutions.com/

Prepared By,NicheTech, ( C ) NicheTech Com.Sol.Pvt.Ltd.