SlideShare ist ein Scribd-Unternehmen logo
1 von 22
-Hussain KMR Behestee
     Software Engineer
   The JAXARA IT Ltd.
           [Session-1]
Agendas
 iOS App Dev Basics
 Building Hello World App
 Application Architecture
 Application States
 Coding in Objective C
 Short Message Send
 Storyboarding
 Static Table View
iOS App Dev Basics
 Cocoa Touch Framework
 iOS SDK
 XCode
 Objective-C
 iTunes-Store/App Store
Setup
Go this URL for details
Building Hello World App
 Start XCode
 Choose Create New XCode
    Project                     Getting idea about
   Choose Tabbed Application      Templates
    and press Next                 Nib File, Interface Builder
   Enter Necessary Information  Simulator
    and press Next                 UI Objects
   Locate where to save and
    press Create. Your Project
    will be created.
   Now Press Run Button, The
    application will be run in
    simulator.
Application Architecture
                main


            App Delegate

                          View
                        Controller

         Main Window

           View Controller
             Screen view
Application Architecture
App          The app delegate is a custom object created at app launch time, usually by the
delegate     UIApplicationMain function. The primary job of this object is to handle state
             transitions within the app. For example, this object is responsible for launch-time
             initialization and handling transitions to and from the background. For information
             about how you use the app delegate to manage state transitions, see Managing
             App State Changes”
View         View controller objects manage the presentation of your app’ s content on screen. A
controller   view controller manages a single view and its collection of subviews. When presented,
             the view controller makes its views visible by installing them in the app’ s window.
             The UIViewController class is the base class for all view controller objects. It provides
             default functionality for loading views, presenting them, rotating them in response to
             device rotations, and several other standard system behaviors. UIKit and other
             frameworks define additional view controller classes to implement standard system
             interfaces such as the image picker , tab bar interface, and navigation interface.
UIWindow     A UIWindow object coordinates the presentation of one or more views on a screen.
             Most apps have only one window, which presents content on the main screen, but apps
             may have an additional window for content displayed on an external display .
             T o change the content of your app, you use a view controller to change the views
             displayed in the corresponding window. Y ou never replace the window itself .
             In addition to hosting views, windows work with the UIApplication object to deliver
             events to your views and view controllers.
Application Architecture
IDE - XCode
Another Hello World App
For walking step by step visit: Hello World App
Another Hello World App (Cont.)
Application States
           The app has not been launched or was running but was terminated by the
Not running
           system.
           The app is running in the foreground but is currently not receiving events.
Inactive   (It may be executing other code though.) An app usually stays in this state
           only briefly as it transitions to a different state.
           The app is running in the foreground and is receiving events. This is the
Active
           normal mode for foreground apps.
           The app is in the background and executing code. Most apps enter this state
           briefly on their way to being suspended. However, an app that requests extra
           execution time may remain in this state for a period of time. In addition, an
Background
           app being launched directly into the background enters this state instead of
           the inactive state. For information about how to execute code while in the
           background, see “Background Execution and Multitasking.”
              The app is in the background but is not executing code. The system moves
              apps to this state automatically and does not notify them before doing so.
Suspended     While suspended, an app remains in memory but does not execute any code.
              When a low-memory condition occurs, the system may purge suspended
              apps without notice to make more space for the foreground app.
Application States
 application:willFinishLaunchingWithOptions:This method is your app’ s first
  chance to execute code at launch time.
 application:didFinishLaunchingWithOptions:—This method allows you to
  perform any final initialization before your app is displayed to the user.
 applicationDidBecomeActive:—Lets your app know that it is about to become the
  foreground app. Use this method for any last minute preparation.
 applicationWillResignActive:—Lets you know that your app is transitioning away
  from being the foreground app. Use this method to put your app into a quiescent state.
 applicationDidEnterBackground:—Lets you know that your app is now running in
  the background and may be suspended at any time.
 applicationWillEnterForeground:—Lets you know that your app is moving out of
  the background and back into the foreground, but that it is not yet active.
 applicationWillTerminate:—Lets you know that your app is being terminated. This
  method is not called if your app is suspended.
Objective-C Basics
Objective-C Basics
 By default, these accessor methods are synthesized
  automatically for you by the compiler, so you don’t need to
  do anything other than declare the property using
  @property in the class interface.
   @property NSString *firstName;
   NSString *firstName = [somePerson firstName];
   [somePerson setFirstName:@"Johnny"];
 The method used to access the value (the getter method)
  has the same name as the property.
 The method used to set the value (the setter method) starts
  with the word “set” and then uses the capitalized property
  name.
Objective-C Basics
 If you don’t want to allow a property to be changed via
  a setter method
   @property (readonly) NSString *fullName;
 If you want to use a different name for an accessor
  method
   @property (getter=isFinished) BOOL finished;
 If you need to specify multiple attributes, simply
  include them as a comma-separated list
   @property (readonly, getter=isFinished) BOOL
    finished;
Objective-C Basics
 Available Attributes are
    readwrite - Indicates that the property should be treated as read/write. This is
       default.
     readonly - Indicates that the property is read-only
     strong - Specifies that there is a strong (owning) relationship to the destination object
     weak - Specifies that there is a weak (non-owning) relationship to the destination
      object.
     copy - Specifies that a copy of the object should be used for assignment.
     assign - Specifies that the setter uses simple assignment. This is default.
     retain - Specifies that retain should be invoked on the object upon assignment.
     nonatomic - Specifies that accessors are nonatomic. By default, accessors are atomic
 How to use:
    In Interface @property(copy, readwrite) NSString *value;
    In Implement @synthesize value; or
          @synthesize value=@“somevalue”;
Blocks - Anonymous Function
•   Blocks are objects that encapsulate a unit of work—that is, a segment of
    code—that can be executed at any time.
•   A caret (^) is used as a syntactic marker for blocks.
Short Message Send
 Syntax
    [receiver message]
 Example
    [myRectangle display];
    [myRectangle setWidth:20.0];
    [myRectangle setOriginX: 30.0 y: 50.0];
 When the Params are optional
    [receiver makeGroup:group, memberOne, memberTwo,
     memberThree];
 Nested messaging
    [myRectangle setPrimaryColor:[otherRect primaryColor]];
 Message chaining
    x = [[[person address] street] name];
Storyboarding
Step by step Storyboarding
Using View Controllers in Storyboarding Application
Static Table View
 In the Attributes inspector, choose Static Cells in the
  Content pop-up menu.

Weitere ähnliche Inhalte

Was ist angesagt?

Anatomy of android application
Anatomy of android applicationAnatomy of android application
Anatomy of android applicationNikunj Dhameliya
 
View groups containers
View groups containersView groups containers
View groups containersMani Selvaraj
 
AngularJS - dependency injection
AngularJS - dependency injectionAngularJS - dependency injection
AngularJS - dependency injectionAlexe Bogdan
 
Get rid of controllers in angular 1.5.x start using component directives
Get rid of controllers in angular 1.5.x start using component directivesGet rid of controllers in angular 1.5.x start using component directives
Get rid of controllers in angular 1.5.x start using component directivesMarios Fakiolas
 
SwiftUI - Performance and Memory Management
SwiftUI - Performance and Memory ManagementSwiftUI - Performance and Memory Management
SwiftUI - Performance and Memory ManagementWannitaTolaema
 
Android application-component
Android application-componentAndroid application-component
Android application-componentLy Haza
 
04 activities - Android
04   activities - Android04   activities - Android
04 activities - AndroidWingston
 
Android Tutorials - Powering with Selection Widget
Android Tutorials - Powering with Selection WidgetAndroid Tutorials - Powering with Selection Widget
Android Tutorials - Powering with Selection WidgetPrajyot Mainkar
 
Refreshing Your App in iOS 7
Refreshing Your App in iOS 7Refreshing Your App in iOS 7
Refreshing Your App in iOS 7Aviary
 
Baruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion WorkshopBaruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion WorkshopBrian Sam-Bodden
 
Day 4: Activity lifecycle
Day 4: Activity lifecycleDay 4: Activity lifecycle
Day 4: Activity lifecycleAhsanul Karim
 
Android tutorial (2)
Android tutorial (2)Android tutorial (2)
Android tutorial (2)Kumar
 
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Gil Irizarry
 
Dependency Injection pattern in Angular
Dependency Injection pattern in AngularDependency Injection pattern in Angular
Dependency Injection pattern in AngularAlexe Bogdan
 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android AppsGil Irizarry
 
08.1. Android How to Use Intent (explicit)
08.1. Android How to Use Intent (explicit)08.1. Android How to Use Intent (explicit)
08.1. Android How to Use Intent (explicit)Oum Saokosal
 
ChtiJUG - Introduction à Angular2
ChtiJUG - Introduction à Angular2ChtiJUG - Introduction à Angular2
ChtiJUG - Introduction à Angular2Demey Emmanuel
 

Was ist angesagt? (20)

Day seven
Day sevenDay seven
Day seven
 
Anatomy of android application
Anatomy of android applicationAnatomy of android application
Anatomy of android application
 
View groups containers
View groups containersView groups containers
View groups containers
 
AngularJS - dependency injection
AngularJS - dependency injectionAngularJS - dependency injection
AngularJS - dependency injection
 
Get rid of controllers in angular 1.5.x start using component directives
Get rid of controllers in angular 1.5.x start using component directivesGet rid of controllers in angular 1.5.x start using component directives
Get rid of controllers in angular 1.5.x start using component directives
 
SwiftUI - Performance and Memory Management
SwiftUI - Performance and Memory ManagementSwiftUI - Performance and Memory Management
SwiftUI - Performance and Memory Management
 
Android application-component
Android application-componentAndroid application-component
Android application-component
 
04 activities - Android
04   activities - Android04   activities - Android
04 activities - Android
 
Android Tutorials - Powering with Selection Widget
Android Tutorials - Powering with Selection WidgetAndroid Tutorials - Powering with Selection Widget
Android Tutorials - Powering with Selection Widget
 
Building maintainable app
Building maintainable appBuilding maintainable app
Building maintainable app
 
Refreshing Your App in iOS 7
Refreshing Your App in iOS 7Refreshing Your App in iOS 7
Refreshing Your App in iOS 7
 
Baruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion WorkshopBaruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion Workshop
 
Day 4: Activity lifecycle
Day 4: Activity lifecycleDay 4: Activity lifecycle
Day 4: Activity lifecycle
 
Android tutorial (2)
Android tutorial (2)Android tutorial (2)
Android tutorial (2)
 
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
 
Advance RCP
Advance RCPAdvance RCP
Advance RCP
 
Dependency Injection pattern in Angular
Dependency Injection pattern in AngularDependency Injection pattern in Angular
Dependency Injection pattern in Angular
 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android Apps
 
08.1. Android How to Use Intent (explicit)
08.1. Android How to Use Intent (explicit)08.1. Android How to Use Intent (explicit)
08.1. Android How to Use Intent (explicit)
 
ChtiJUG - Introduction à Angular2
ChtiJUG - Introduction à Angular2ChtiJUG - Introduction à Angular2
ChtiJUG - Introduction à Angular2
 

Andere mochten auch

Andere mochten auch (8)

iOS 5
iOS 5iOS 5
iOS 5
 
iOS 5 Kick-Start @ISELTech
iOS 5 Kick-Start @ISELTechiOS 5 Kick-Start @ISELTech
iOS 5 Kick-Start @ISELTech
 
iOS - development
iOS - developmentiOS - development
iOS - development
 
iOS5 NewStuff
iOS5 NewStuffiOS5 NewStuff
iOS5 NewStuff
 
Fwt ios 5
Fwt ios 5Fwt ios 5
Fwt ios 5
 
iOS 5 Tech Talk World Tour 2011 draft001
iOS 5 Tech Talk World Tour 2011 draft001iOS 5 Tech Talk World Tour 2011 draft001
iOS 5 Tech Talk World Tour 2011 draft001
 
What Apple's iOS 5 Means for Marketers
What Apple's iOS 5 Means for MarketersWhat Apple's iOS 5 Means for Marketers
What Apple's iOS 5 Means for Marketers
 
iOS PPT
iOS PPTiOS PPT
iOS PPT
 

Ähnlich wie iOS app dev Training - Session1

Lecture 1 Introduction to React Native.pptx
Lecture 1 Introduction to React Native.pptxLecture 1 Introduction to React Native.pptx
Lecture 1 Introduction to React Native.pptxGevitaChinnaiah
 
React Native +Redux + ES6 (Updated)
React Native +Redux + ES6 (Updated)React Native +Redux + ES6 (Updated)
React Native +Redux + ES6 (Updated)Chiew Carol
 
Introduction to State Restoration in Flutter
Introduction to State Restoration in FlutterIntroduction to State Restoration in Flutter
Introduction to State Restoration in FlutterDave Chao
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appiumPratik Patel
 
Kotlin for Android App Development Presentation
Kotlin for Android App Development PresentationKotlin for Android App Development Presentation
Kotlin for Android App Development PresentationKnoldus Inc.
 
MD-IV-CH-ppt.ppt
MD-IV-CH-ppt.pptMD-IV-CH-ppt.ppt
MD-IV-CH-ppt.pptbharatt7
 
React Basic and Advance || React Basic
React Basic and Advance   || React BasicReact Basic and Advance   || React Basic
React Basic and Advance || React Basicrafaqathussainc077
 
Ios development 2
Ios development 2Ios development 2
Ios development 2elnaqah
 
Android lifecycle
Android lifecycleAndroid lifecycle
Android lifecycleKumar
 
Architecting Single Activity Applications (With or Without Fragments)
Architecting Single Activity Applications (With or Without Fragments)Architecting Single Activity Applications (With or Without Fragments)
Architecting Single Activity Applications (With or Without Fragments)Gabor Varadi
 
iOS Beginners Lesson 2
iOS Beginners Lesson 2iOS Beginners Lesson 2
iOS Beginners Lesson 2Calvin Cheng
 
GITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React NativeGITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React NativeGITS Indonesia
 
Fundamental concepts of react js
Fundamental concepts of react jsFundamental concepts of react js
Fundamental concepts of react jsStephieJohn
 
Android architecture
Android architecture Android architecture
Android architecture Trong-An Bui
 
Reactotron - A Debugging Agent
Reactotron -  A Debugging AgentReactotron -  A Debugging Agent
Reactotron - A Debugging AgentMatthieu Vachon
 

Ähnlich wie iOS app dev Training - Session1 (20)

Compose Camp by GDSC NSUT
Compose Camp by GDSC NSUTCompose Camp by GDSC NSUT
Compose Camp by GDSC NSUT
 
Lecture 1 Introduction to React Native.pptx
Lecture 1 Introduction to React Native.pptxLecture 1 Introduction to React Native.pptx
Lecture 1 Introduction to React Native.pptx
 
React Native +Redux + ES6 (Updated)
React Native +Redux + ES6 (Updated)React Native +Redux + ES6 (Updated)
React Native +Redux + ES6 (Updated)
 
Introduction of Xcode
Introduction of XcodeIntroduction of Xcode
Introduction of Xcode
 
Introduction to State Restoration in Flutter
Introduction to State Restoration in FlutterIntroduction to State Restoration in Flutter
Introduction to State Restoration in Flutter
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appium
 
Kotlin for Android App Development Presentation
Kotlin for Android App Development PresentationKotlin for Android App Development Presentation
Kotlin for Android App Development Presentation
 
MD-IV-CH-ppt.ppt
MD-IV-CH-ppt.pptMD-IV-CH-ppt.ppt
MD-IV-CH-ppt.ppt
 
React Basic and Advance || React Basic
React Basic and Advance   || React BasicReact Basic and Advance   || React Basic
React Basic and Advance || React Basic
 
Ios development 2
Ios development 2Ios development 2
Ios development 2
 
Simple React Todo List
Simple React Todo ListSimple React Todo List
Simple React Todo List
 
Android lifecycle
Android lifecycleAndroid lifecycle
Android lifecycle
 
Architecting Single Activity Applications (With or Without Fragments)
Architecting Single Activity Applications (With or Without Fragments)Architecting Single Activity Applications (With or Without Fragments)
Architecting Single Activity Applications (With or Without Fragments)
 
iOS Beginners Lesson 2
iOS Beginners Lesson 2iOS Beginners Lesson 2
iOS Beginners Lesson 2
 
Android beginners David
Android beginners DavidAndroid beginners David
Android beginners David
 
GITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React NativeGITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React Native
 
Android by Swecha
Android by SwechaAndroid by Swecha
Android by Swecha
 
Fundamental concepts of react js
Fundamental concepts of react jsFundamental concepts of react js
Fundamental concepts of react js
 
Android architecture
Android architecture Android architecture
Android architecture
 
Reactotron - A Debugging Agent
Reactotron -  A Debugging AgentReactotron -  A Debugging Agent
Reactotron - A Debugging Agent
 

Mehr von Hussain Behestee

Mehr von Hussain Behestee (7)

Android session-1-sajib
Android session-1-sajibAndroid session-1-sajib
Android session-1-sajib
 
Android session-5-sajib
Android session-5-sajibAndroid session-5-sajib
Android session-5-sajib
 
Android session 3-behestee
Android session 3-behesteeAndroid session 3-behestee
Android session 3-behestee
 
Android session 2-behestee
Android session 2-behesteeAndroid session 2-behestee
Android session 2-behestee
 
Android session 4-behestee
Android session 4-behesteeAndroid session 4-behestee
Android session 4-behestee
 
iOS Training Session-3
iOS Training Session-3iOS Training Session-3
iOS Training Session-3
 
iOS Session-2
iOS Session-2iOS Session-2
iOS Session-2
 

Kürzlich hochgeladen

Do You Think it is a Small Matter- David’s Men.pptx
Do You Think it is a Small Matter- David’s Men.pptxDo You Think it is a Small Matter- David’s Men.pptx
Do You Think it is a Small Matter- David’s Men.pptxRick Peterson
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiAmil Baba Naveed Bangali
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiAmil Baba Mangal Maseeh
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiAmil Baba Naveed Bangali
 
Call Girls in Greater Kailash Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Greater Kailash Delhi 💯Call Us 🔝8264348440🔝Call Girls in Greater Kailash Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Greater Kailash Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Sawwaf Calendar, 2024
Sawwaf Calendar, 2024Sawwaf Calendar, 2024
Sawwaf Calendar, 2024Bassem Matta
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiAmil Baba Mangal Maseeh
 
black magic specialist amil baba pakistan no 1 Black magic contact number rea...
black magic specialist amil baba pakistan no 1 Black magic contact number rea...black magic specialist amil baba pakistan no 1 Black magic contact number rea...
black magic specialist amil baba pakistan no 1 Black magic contact number rea...Amil Baba Mangal Maseeh
 
Unity is Strength 2024 Peace Haggadah + Song List.pdf
Unity is Strength 2024 Peace Haggadah + Song List.pdfUnity is Strength 2024 Peace Haggadah + Song List.pdf
Unity is Strength 2024 Peace Haggadah + Song List.pdfRebeccaSealfon
 
The Chronological Life of Christ part 097 (Reality Check Luke 13 1-9).pptx
The Chronological Life of Christ part 097 (Reality Check Luke 13 1-9).pptxThe Chronological Life of Christ part 097 (Reality Check Luke 13 1-9).pptx
The Chronological Life of Christ part 097 (Reality Check Luke 13 1-9).pptxNetwork Bible Fellowship
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiAmil Baba Mangal Maseeh
 
Topmost Black magic specialist in Saudi Arabia Or Bangali Amil baba in UK Or...
Topmost Black magic specialist in Saudi Arabia  Or Bangali Amil baba in UK Or...Topmost Black magic specialist in Saudi Arabia  Or Bangali Amil baba in UK Or...
Topmost Black magic specialist in Saudi Arabia Or Bangali Amil baba in UK Or...baharayali
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiAmil Baba Naveed Bangali
 
Deerfoot Church of Christ Bulletin 4 21 24
Deerfoot Church of Christ Bulletin 4 21 24Deerfoot Church of Christ Bulletin 4 21 24
Deerfoot Church of Christ Bulletin 4 21 24deerfootcoc
 
Dubai Call Girls Skinny Mandy O525547819 Call Girls Dubai
Dubai Call Girls Skinny Mandy O525547819 Call Girls DubaiDubai Call Girls Skinny Mandy O525547819 Call Girls Dubai
Dubai Call Girls Skinny Mandy O525547819 Call Girls Dubaikojalkojal131
 
Study of the Psalms Chapter 1 verse 1 - wanderean
Study of the Psalms Chapter 1 verse 1 - wandereanStudy of the Psalms Chapter 1 verse 1 - wanderean
Study of the Psalms Chapter 1 verse 1 - wandereanmaricelcanoynuay
 
No 1 astrologer amil baba in Canada Usa astrologer in Canada
No 1 astrologer amil baba in Canada Usa astrologer in CanadaNo 1 astrologer amil baba in Canada Usa astrologer in Canada
No 1 astrologer amil baba in Canada Usa astrologer in CanadaAmil Baba Mangal Maseeh
 

Kürzlich hochgeladen (20)

🔝9953056974🔝!!-YOUNG BOOK model Call Girls In Pushp vihar Delhi Escort service
🔝9953056974🔝!!-YOUNG BOOK model Call Girls In Pushp vihar  Delhi Escort service🔝9953056974🔝!!-YOUNG BOOK model Call Girls In Pushp vihar  Delhi Escort service
🔝9953056974🔝!!-YOUNG BOOK model Call Girls In Pushp vihar Delhi Escort service
 
Do You Think it is a Small Matter- David’s Men.pptx
Do You Think it is a Small Matter- David’s Men.pptxDo You Think it is a Small Matter- David’s Men.pptx
Do You Think it is a Small Matter- David’s Men.pptx
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
 
Call Girls in Greater Kailash Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Greater Kailash Delhi 💯Call Us 🔝8264348440🔝Call Girls in Greater Kailash Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Greater Kailash Delhi 💯Call Us 🔝8264348440🔝
 
Sawwaf Calendar, 2024
Sawwaf Calendar, 2024Sawwaf Calendar, 2024
Sawwaf Calendar, 2024
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
 
young Call girls in Dwarka sector 3🔝 9953056974 🔝 Delhi escort Service
young Call girls in Dwarka sector 3🔝 9953056974 🔝 Delhi escort Serviceyoung Call girls in Dwarka sector 3🔝 9953056974 🔝 Delhi escort Service
young Call girls in Dwarka sector 3🔝 9953056974 🔝 Delhi escort Service
 
black magic specialist amil baba pakistan no 1 Black magic contact number rea...
black magic specialist amil baba pakistan no 1 Black magic contact number rea...black magic specialist amil baba pakistan no 1 Black magic contact number rea...
black magic specialist amil baba pakistan no 1 Black magic contact number rea...
 
Unity is Strength 2024 Peace Haggadah + Song List.pdf
Unity is Strength 2024 Peace Haggadah + Song List.pdfUnity is Strength 2024 Peace Haggadah + Song List.pdf
Unity is Strength 2024 Peace Haggadah + Song List.pdf
 
The Chronological Life of Christ part 097 (Reality Check Luke 13 1-9).pptx
The Chronological Life of Christ part 097 (Reality Check Luke 13 1-9).pptxThe Chronological Life of Christ part 097 (Reality Check Luke 13 1-9).pptx
The Chronological Life of Christ part 097 (Reality Check Luke 13 1-9).pptx
 
🔝9953056974 🔝young Delhi Escort service Vinay Nagar
🔝9953056974 🔝young Delhi Escort service Vinay Nagar🔝9953056974 🔝young Delhi Escort service Vinay Nagar
🔝9953056974 🔝young Delhi Escort service Vinay Nagar
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
 
Topmost Black magic specialist in Saudi Arabia Or Bangali Amil baba in UK Or...
Topmost Black magic specialist in Saudi Arabia  Or Bangali Amil baba in UK Or...Topmost Black magic specialist in Saudi Arabia  Or Bangali Amil baba in UK Or...
Topmost Black magic specialist in Saudi Arabia Or Bangali Amil baba in UK Or...
 
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in KarachiNo.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
No.1 Amil baba in Pakistan amil baba in Lahore amil baba in Karachi
 
Deerfoot Church of Christ Bulletin 4 21 24
Deerfoot Church of Christ Bulletin 4 21 24Deerfoot Church of Christ Bulletin 4 21 24
Deerfoot Church of Christ Bulletin 4 21 24
 
Dubai Call Girls Skinny Mandy O525547819 Call Girls Dubai
Dubai Call Girls Skinny Mandy O525547819 Call Girls DubaiDubai Call Girls Skinny Mandy O525547819 Call Girls Dubai
Dubai Call Girls Skinny Mandy O525547819 Call Girls Dubai
 
Study of the Psalms Chapter 1 verse 1 - wanderean
Study of the Psalms Chapter 1 verse 1 - wandereanStudy of the Psalms Chapter 1 verse 1 - wanderean
Study of the Psalms Chapter 1 verse 1 - wanderean
 
No 1 astrologer amil baba in Canada Usa astrologer in Canada
No 1 astrologer amil baba in Canada Usa astrologer in CanadaNo 1 astrologer amil baba in Canada Usa astrologer in Canada
No 1 astrologer amil baba in Canada Usa astrologer in Canada
 

iOS app dev Training - Session1

  • 1.
  • 2. -Hussain KMR Behestee Software Engineer The JAXARA IT Ltd. [Session-1]
  • 3. Agendas  iOS App Dev Basics  Building Hello World App  Application Architecture  Application States  Coding in Objective C  Short Message Send  Storyboarding  Static Table View
  • 4. iOS App Dev Basics  Cocoa Touch Framework  iOS SDK  XCode  Objective-C  iTunes-Store/App Store
  • 5. Setup Go this URL for details
  • 6. Building Hello World App  Start XCode  Choose Create New XCode Project  Getting idea about  Choose Tabbed Application  Templates and press Next  Nib File, Interface Builder  Enter Necessary Information  Simulator and press Next  UI Objects  Locate where to save and press Create. Your Project will be created.  Now Press Run Button, The application will be run in simulator.
  • 7. Application Architecture main App Delegate View Controller Main Window View Controller Screen view
  • 8. Application Architecture App The app delegate is a custom object created at app launch time, usually by the delegate UIApplicationMain function. The primary job of this object is to handle state transitions within the app. For example, this object is responsible for launch-time initialization and handling transitions to and from the background. For information about how you use the app delegate to manage state transitions, see Managing App State Changes” View View controller objects manage the presentation of your app’ s content on screen. A controller view controller manages a single view and its collection of subviews. When presented, the view controller makes its views visible by installing them in the app’ s window. The UIViewController class is the base class for all view controller objects. It provides default functionality for loading views, presenting them, rotating them in response to device rotations, and several other standard system behaviors. UIKit and other frameworks define additional view controller classes to implement standard system interfaces such as the image picker , tab bar interface, and navigation interface. UIWindow A UIWindow object coordinates the presentation of one or more views on a screen. Most apps have only one window, which presents content on the main screen, but apps may have an additional window for content displayed on an external display . T o change the content of your app, you use a view controller to change the views displayed in the corresponding window. Y ou never replace the window itself . In addition to hosting views, windows work with the UIApplication object to deliver events to your views and view controllers.
  • 11. Another Hello World App For walking step by step visit: Hello World App
  • 12. Another Hello World App (Cont.)
  • 13. Application States The app has not been launched or was running but was terminated by the Not running system. The app is running in the foreground but is currently not receiving events. Inactive (It may be executing other code though.) An app usually stays in this state only briefly as it transitions to a different state. The app is running in the foreground and is receiving events. This is the Active normal mode for foreground apps. The app is in the background and executing code. Most apps enter this state briefly on their way to being suspended. However, an app that requests extra execution time may remain in this state for a period of time. In addition, an Background app being launched directly into the background enters this state instead of the inactive state. For information about how to execute code while in the background, see “Background Execution and Multitasking.” The app is in the background but is not executing code. The system moves apps to this state automatically and does not notify them before doing so. Suspended While suspended, an app remains in memory but does not execute any code. When a low-memory condition occurs, the system may purge suspended apps without notice to make more space for the foreground app.
  • 14. Application States  application:willFinishLaunchingWithOptions:This method is your app’ s first chance to execute code at launch time.  application:didFinishLaunchingWithOptions:—This method allows you to perform any final initialization before your app is displayed to the user.  applicationDidBecomeActive:—Lets your app know that it is about to become the foreground app. Use this method for any last minute preparation.  applicationWillResignActive:—Lets you know that your app is transitioning away from being the foreground app. Use this method to put your app into a quiescent state.  applicationDidEnterBackground:—Lets you know that your app is now running in the background and may be suspended at any time.  applicationWillEnterForeground:—Lets you know that your app is moving out of the background and back into the foreground, but that it is not yet active.  applicationWillTerminate:—Lets you know that your app is being terminated. This method is not called if your app is suspended.
  • 16. Objective-C Basics  By default, these accessor methods are synthesized automatically for you by the compiler, so you don’t need to do anything other than declare the property using @property in the class interface.  @property NSString *firstName;  NSString *firstName = [somePerson firstName];  [somePerson setFirstName:@"Johnny"];  The method used to access the value (the getter method) has the same name as the property.  The method used to set the value (the setter method) starts with the word “set” and then uses the capitalized property name.
  • 17. Objective-C Basics  If you don’t want to allow a property to be changed via a setter method  @property (readonly) NSString *fullName;  If you want to use a different name for an accessor method  @property (getter=isFinished) BOOL finished;  If you need to specify multiple attributes, simply include them as a comma-separated list  @property (readonly, getter=isFinished) BOOL finished;
  • 18. Objective-C Basics  Available Attributes are  readwrite - Indicates that the property should be treated as read/write. This is default.  readonly - Indicates that the property is read-only  strong - Specifies that there is a strong (owning) relationship to the destination object  weak - Specifies that there is a weak (non-owning) relationship to the destination object.  copy - Specifies that a copy of the object should be used for assignment.  assign - Specifies that the setter uses simple assignment. This is default.  retain - Specifies that retain should be invoked on the object upon assignment.  nonatomic - Specifies that accessors are nonatomic. By default, accessors are atomic  How to use:  In Interface @property(copy, readwrite) NSString *value;  In Implement @synthesize value; or  @synthesize value=@“somevalue”;
  • 19. Blocks - Anonymous Function • Blocks are objects that encapsulate a unit of work—that is, a segment of code—that can be executed at any time. • A caret (^) is used as a syntactic marker for blocks.
  • 20. Short Message Send  Syntax  [receiver message]  Example  [myRectangle display];  [myRectangle setWidth:20.0];  [myRectangle setOriginX: 30.0 y: 50.0];  When the Params are optional  [receiver makeGroup:group, memberOne, memberTwo, memberThree];  Nested messaging  [myRectangle setPrimaryColor:[otherRect primaryColor]];  Message chaining  x = [[[person address] street] name];
  • 21. Storyboarding Step by step Storyboarding Using View Controllers in Storyboarding Application
  • 22. Static Table View  In the Attributes inspector, choose Static Cells in the Content pop-up menu.