Telerik Software Academy Mobile apps for iPhone & iPad.

Slides:



Advertisements
Similar presentations
CPSC 441 TUTORIAL – JANUARY 16, 2012 TA: MARYAM ELAHI INTRODUCTION TO C.
Advertisements

Chapter 6 Limited Direct Execution
Informationsteknologi Thursday, September 6, 2007Computer Systems/Operating Systems - Class 21 Today’s class Finish computer system overview Review of.
UNIX Process Control Bach 7 Operating Systems Course Hebrew University Spring 2007.
1 Processes and Pipes COS 217 Professor Jennifer Rexford.
V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.
Figure 2.8 Compiler phases Compiling. Figure 2.9 Object module Linking.
Informationsteknologi Monday, September 10, 2007Computer Systems/Operating Systems - Class 31 Today’s class Review of more C Operating system overview.
The Process - Part II. Process Attributes  Each UNIX process is associated with a number of attributes which help the system control the running and.
CS-502 Fall 2006Processes in Unix, Linux, & Windows 1 Processes in Unix, Linux, and Windows CS502 Operating Systems.
Unix & Windows Processes 1 CS502 Spring 2006 Unix/Windows Processes.
Advanced Programming in the UNIX Environment Hop Lee.
Processes in Unix, Linux, and Windows CS-502 Fall Processes in Unix, Linux, and Windows CS502 Operating Systems (Slides include materials from Operating.
Buffer Overflow Attacks. Memory plays a key part in many computer system functions. It’s a critical component to many internal operations. From mother.
Command line arguments. – main can take two arguments conventionally called argc and argv. – Information regarding command line arguments are passed to.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
1Reference “Introduction To Unix Signals Programming” in the reference material section Man page – sigprocmask, alarm “Understanding the Linux Kernel”
Hotfoot HPC Cluster March 31, Topics Overview Execute Nodes Manager/Submit Nodes NFS Server Storage Networking Performance.
1 Designing with a UIToolBar iPhone/iPad, iOS Development Tutorial.
Processes and Threads CS550 Operating Systems. Processes and Threads These exist only at execution time They have fast state changes -> in memory and.
CS 590 Programming Environments with UNIX. Computer Lab Account Course Homepage
IOS with Swift Hello world app.
CS252: Systems Programming Ninghui Li Based on Slides by Prof. Gustavo Rodriguez-Rivera Topic 8: Opening Files and Starting Processes.
+ An Intro To Xcode By Sarah Montroy. + What is Xcode?
View Controllers Content taken from book: “iPhone SDK Development” by Bill Dudney and Chris Adamson.
Dale Roberts Introduction to Visual Programming Dale Roberts, Lecturer Computer Science, IUPUI Department of Computer and.
CS-1030 Dr. Mark L. Hornick 1 Java Review Interactive.
Polymorphism, Dynamic Typing, and Dynamic Binding Copyright © 2012 by Yong-Gu Lee
Nav Controllers UINavigationController. Overview Nav Controller basics Like a tabview controller, a navViewController manages views A navigationViewController.
X86 Architecture.
What is exactly Exploit writing?  Writing a piece of code which is capable of exploit the vulnerability in the target software.
Wiimote/Kinect Lab Midterm Update Senior Design December 2011, Group 16 Adviser: Dr. Tom Daniels Brenton Hankins Rick Hanton Harsh Goel Jeff Kramer.
CSE 232: C++ memory management Overview of Arrays Arrays are the simplest kind of data structure –One item right after another in memory (“contiguous range”
2.1 Processes  process = abstraction of a running program.
OPERATING SYSTEMS 1 - HARDWARE PIETER HARTEL 1. Hardware 2.
CS415 C++ Programming Takamitsu Kawai x4212 G11 CERC building WV Virtual Environments Lab West Virginia University.
The Controller in MVC of iOS CS4521. The controller in the MVC  Controller  Knows about model and view objects  The brains of the operation  Manages.
The iOS Platform and SDK. iOS iPhoneiPad Mini iPad.
Chapter 2 Process Management. 2 Objectives After finish this chapter, you will understand: the concept of a process. the process life cycle. process states.
Understand Windows Services Software Development Fundamentals LESSON 5.3.
2.1 Processes  process = abstraction of a running program  multiprogramming = CPU switches from running program to running program  pseudoparallelism.
1 Lecture 19: Unix signals and Terminal management n what is a signal n signal handling u kernel u user n signal generation n signal example usage n terminal.
Services. What is a Service? A Service is not a separate process. A Service is not a thread. A Service itself is actually very simple, providing two main.
Kyler Rhoades. What is Jailbreaking? History The evais0n Jailbreak How evais0n Works.
The Ingredients of Android Applications. A simple application in a process In a classical programming environment, the OS would load the program code.
IOS Applications Michelle Alexander COMS E6998 2/4/2013.
SE3910 Week 8, Class 3 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 9 Lab: Individual demos of working sub-modules.
2014 CS Mobile Computing (iOS) Dr. William C. Bulko CS 378 – Mobile Computing (iOS) Introduction.
Cross Platform Development with Xamarin & Visual Studio 2013
Component Configurator
Views in iOS Mobile apps for iPhone & iPad Telerik Software Academy
Android Runtime – Dalvik VM
iOS - First Application Anatomy
Command line arguments
IOS App Development.
Affordable iPhone Mobile Apps Development Services Company
CSC 253 Lecture 8.
EEC-492/693/793 iPhone Application Development
CSC 253 Lecture 8.
iOS App Development Training
Processes in Unix, Linux, and Windows
2.1 Processes process = abstraction of a running program
A lighting tour™ to iOS Plus some fun stuff
Understanding Program Address Space
System Calls David Ferry CSCI 3500 – Operating Systems
CSC 581: Mobile App Development
Processes in Unix and Windows
Functions Reasons Concepts Passing arguments to a function
04 | State Management Bill Burrows | UW Faculty Member & VB MVP
Advanced OS COMP 755.
Presentation transcript:

Telerik Software Academy Mobile apps for iPhone & iPad

 iOS app Execution model  UIApplication object  UIApplicationDelegate object  UIViewController  Lifecycle  Events  State 2

Execution model and lifecycle

iOS Application main function: #import #import #import "AppDelegate.h" int main(int argc, char * argv[]) { return UIApplicationMain(argc, argv, nil, return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); NSStringFromClass([AppDelegate class])); }} 4 Called in the main entry point to create the application object, delegate and set up the event cycle

 UIApplicationDelegate – protocol declares methods that are implemented by the delegate of the singleton UIApplication object.  AppDelegate – implements the application delegate to expose the control over the UIApplication 5

 Application states:  Not Running – the app is not launched  Inactive – the app is running in the foreground but is currently not receiving events  Active – the app is running in the foreground but is receiving events  Background – the app is running in the background and executing code  Suspended – the app is in the background but is not executing code 6

7

8

Overview and usage

 UIViewController:  Provides the fundamental view-management model  Coordinates its efforts with model objects and other controller objects communication  Responsible for a single view  States preservation and restoration 10

 Managing the View  view – the root view of the controller’s view hierarchy  viewDidLoad – it is called after the view controller has loaded its view hierarchy into memory  Handling Memory Warning  didReceiveMemoryWarning  Sent to the view controller when the app receives a memory warning 11

 Responding to View Events  viewWillAppear  Notifies that its view to be added to a view hierarchy  viewDidAppear  Notifies that that its view is added to a view hierarchy  viewWillDisappear  Notifies that its view is about to be removed from a view hierarchy 12

 viewDidDisappear  Notifies that its view is about to be removed from a view hierarchy  viewWillLayoutSubviews  Called to notify the view controller that its view is about to layout its subviews  viewDidLayoutSubviews  Called to notify the view controller that its view has just laid out its subviews 13

14

Questions?