iphone App Basics iphone and ipod touch Development Fall 2009 Lecture 5

Size: px
Start display at page:

Download "iphone App Basics iphone and ipod touch Development Fall 2009 Lecture 5"

Transcription

1 iphone App Basics iphone and ipod touch Development Fall 2009 Lecture 5

2 Questions?

3 Announcements Assignment #1 due this evening by 11:59pm Remember, if you wish to use a free late you must me before midnight Assignment #2 out this evening Due Tuesday September 22 nd by 11:59pm

4 Today s Topics iphone OS Stack Anatomy of an iphone App Running an iphone App Interface Builder Adding UI Elements Outlets & Actions

5 iphone OS Stack

6 iphone OS Stack Core OS OS X kernel UNIX services Hardware drivers Power management Management of Threads File system Your App Cocoa Touch Media Core Services Core OS Network IPC

7 iphone OS Stack Core Services Bonjour Sockets URL utilities Address Book Core Location SQLite Collections Your App Cocoa Touch Media Core Services Core OS File Access Core Data

8 iphone OS Stack Media Core Audio Core Graphics OpenGL ES Quartz Core Media Player Audio Services Images Your App Cocoa Touch Media Core Services Core OS

9 iphone OS Stack Media UIKit Address Book UI Game Kit Map Kit Message UI Touch/Multi-touch Accelerometer Your App Cocoa Touch Media Core Services Core OS

10 Cocoa Touch Decomposition Cocoa Touch UIKit User interface elements Application runtime Event handling Hardware APIs Foundation Utility classes Collection classes Object wrappers for system services Subset of Foundation in Cocoa

11 iphone OS Stack Your App Xcode templates Your code leveraging lower level APIs Your App Cocoa Touch Media Core Services Core OS

12 Anatomy of an iphone App

13 Choosing an iphone App Template Fire up Xcode and select File New Project... Several templates to select from as a starting point We ll start with what is probably the easiest iphone template the view-based application Select View-based Application, then click Choose... Name the project HelloWorld and Save

14 New View-Based Application

15 Stubbed Out Project Once you name and save your project, you ll notice that Xcode created a lot for you as part of this template

16 Classes Classes typically consist of ObjC code that we can tailor to meet the needs of our application Additionally, when we add classes to our project, they are usually placed under Classes as well For this app template we see that Xcode has automatically created two classes for us

17 Classes ProjectNameAppDelegate.[mh] The AppDelegate class handles life-cycle events for our application, such as... App startup App shutdown

18 Classes ProjectNameViewController.[mh] The default ViewController class is responsible for managing what appears on the screen

19 Other Sources Source files that are automatically generated by Xcode Typically, you will not need to do anything with these files Usually 3 rd party libraries are placed here as well

20 Other Sources ProjectName_Prefix.pch The.pch file is a pre-compiled header file that is created by Xcode to improve performance of processing headers in main

21 Other Sources main.m The main.m file is responsible for actually launching your application

22 Resources The resources folder contains no source code, but the files here are vital to your application App icon App name GUIs Other files you might add here include Images Audio

23 Resources ProjectNameViewController.xib The HelloWorldViewController contains the UI that we ll initially see when the app loads You can think of the.xib file as containing a freeze dried version of our UI elements

24 Resources MainWindow.xib The Main Window is typically responsible for loading the first view when the app loads Usually this displays one of the other.xib files

25 Resources ProjectName-Info.plist The Info.plist file contains basic app information such as App icon App name Name of the main.xib file

26 Frameworks Lists the various libraries that our app is dependent upon

27 Frameworks UIKit UIKit provides the fundamental objects for constructing and managing your application's user interface Events Windows Views Controls Multi-touch

28 Frameworks Foundation UIKit provides the foundation for Cocoa development NSObject Basic data types Collections OS Services

29 Frameworks CoreGraphics Provides a C-based API that is a low-level, lightweight 2D rendering engine Path based drawing Gradients Images Transforms PDF

30 Products Contains the files that will be created by the build process

31 Products ProjectName.app The actual iphone application

32 Running an iphone App

33 Deployment Options Two options for building and deploying your iphone apps... On device Build for ARM iphone architecture Requires code signing certificate Push to device to run and test On simulator Build for x86 Mac architecture, runs in a simulator No code signing required Run and test on Mac

34 iphone Simulator The simulator is sufficient for the apps that we re going to be building to start out with However, there are some limitations in the simulator No camera No accelerometers Limited multi-touch GPS fixed at Apple headquarters Etc...

35 iphone Simulator Location The simulator is located under Macintosh HD Developer Platforms iphonesimulator.platform Developer Applications iphone Simulator.app I d recommend that you either launch it as needed from Xcode, through Spotlight, or add it to the dock

36 Targeting the Simulator

37 Building and Running To test the app from the Build menu select Build and Run Or, simply type R This will... Build your app Install it into the simulator Automatically launch it

38 App Running in Simulator

39 Congratulations You ve successfully completed the most basic Hello World of iphone apps......a flashlight app : )

40 Interface Builder

41 NIB files Earlier we stated that.xib files contained a freeze dried representation of our GUI The files are XML-based and named with a.xib extension (used to be.nib) So, for historical reasons they are still called NIBs NIB files are manipulated in another part of the SDK called Interface Builder

42 Interface Builder Interface Builder (or IB for short) is where we edit our NIBs IB contains: A canvas on which we create our GUI A library of widgets Tools to tweak the appearance of the UI

43 Interface Builder Location IB is located at Macintosh HD Developer Applications Interface Builder.app I d recommend that you either launch it as needed from Xcode, through Spotlight, or add it to the dock

44 Multi-Window Display

45 Main NIB Window The main NIB window contains some objects which are used for a variety of purposes We ll talk about these objects in more detail later

46 View Window The view window is our app s canvas This is where we ll build out the UI If not visible, double clicking the View icon in the NIB window should open it

47 Inspector The Inspector is a 4 tabbed panel that lists details for the currently selected UI element Attributes Connections Size Identity If not visible, select Tools Inspector, or I You can also jump between the various tabs using 1, 2, 3 & 4

48 Library The library contains our palette of UI elements from which to choose Has a handy search bar at the bottom to filter the list If not visible, select Tools Library, or L

49 Adding UI Elements

50 Hello iphone World! Let s use Interface Builder to add some text to our view We ll customize some of the defaults to build a (slightly) more interesting screen Font sizes Font colors Font family Text alignment Background colors

51 Drag and Drop Simply click, then drag and......drop here

52 Change Text To change the default text of most UI elements, you simply double click and enter the new label...

53 Guide Lines You ll notice handles around the edges of UI elements, IB allows you to resize by simply dragging and even offers various guides that will appear to help align your widgets

54 Inspector Attribute Tab We use the attributes tab of the Inspector to customize the visual aspects of our UI elements The specific attributes you can tweak will change based on the current UI element selected

55 Testing our Changes Save the NIB file using File Save, or S Then return to Xcode and re-run the app IB will automatically redeploy the changes to the simulator

56 Hello iphone World!

57 Outlets & Actions

58 Building a More Interesting App We ve seen that Interface Builder is a powerful tool that allows us to build out pretty nice looking GUIs and allows us to customize the appearance of our app However, that only gets us so far... What about user interaction?

59 A More Interesting Hello World App

60 UI Elements

61 Steps to Build Our App Construct the view this is simply drag and drop like the previous Hello iphone World app Need a way to get a handle on UI elements to be able to read and write their values Read from text field Write to the label Need a way to wire up the button to respond to events When the button is pressed display the message

62 IBOutlet When we click the button, we need retrieve the name from the text field and set the text on the label accordingly We need a mechanism to associate UI elements in the NIB to variables in our code A reference from code to a UI element in a NIB is called an outlet and is declared by the keyword IBOutlet

63 IBOutlets in HelloNameViewController.h #import HelloNameViewController : UIViewController {! UILabel *label;! UITextField *field;! IBOutlet UILabel IBOutlet UITextField Typically UI elements are declared nonatomic and retain Declared outlet

64 IBOutlets in HelloNameViewController.m #import label; Remember to synthesize properties /*... bunch 'o commented out auto-generated methods... */ - (void)didreceivememorywarning { [super didreceivememorywarning]; } - (void)viewdidunload { } - (void)dealloc { self.label = nil; self.field = nil; [super dealloc]; Also need to cause properties to get released when done

65 IBOutlet Currently, these are just declarations that the variables are capable of referencing a UI element Hey you, we have some outlets here!

66 IBOutlet We need to actually perform the linkage to associate the outlet with a particular instance of a UI element in IB IBOutlet (It is a common error to miss this step when getting started)

67 Wiring Up the IBOutlet for the Text Field Control click, drag and......drop here

68 Wiring Up the IBOutlet for the Text Field Select the outlet for this UI element

69 Wiring Up the IBOutlet for the Label Control click, drag and......drop here

70 Wiring Up the IBOutlet for the Label Select the outlet for this UI element

71 Verifying Outlet Connections You can verify that the connections were created by selecting File s Owner from the NIB file window and view the connections tab...

72 IBAction When we click the button, we need execute some code to read the value of one UI element and set another We need a mechanism to associate interaction with a UI element (a button press) in the NIB to a method in our code A method that is capable of handling events is said to respond to actions and is identified by the keyword IBAction

73 IBActions in HelloNameViewController.h #import HelloNameViewController : UIViewController {! UILabel *label;! UITextField *field;! } - (IBAction)sayHello; Declared action IBOutlet UILabel IBOutlet UITextField

74 IBActions in HelloNameViewController.m #import label; - (IBAction)sayHello { /*... OUR CODE HERE... */ } /*... bunch 'o commented out auto-generated methods... */ /*... didreceivememorywarning and viewdidunload methods... */ - (void)dealloc {! self.label = nil;! self.field = nil; [super dealloc];

75 How to Use UILabel & UITextField? Where can we find out how to read the value of a UITextField and write the value for a UILabel?

76 IBActions in HelloNameViewController.m #import label; - (IBAction)sayHello {! self.label.text = [NSString stringwithformat:@"hello, %@", self.field.text]; } /*... bunch 'o commented out auto-generated methods... */ /*... didreceivememorywarning and viewdidunload methods... */ - (void)dealloc {! self.label = nil;! self.field = nil; [super dealloc];

77 IBAction Currently, these are just declarations that these methods are capable of performing actions Hey you, we have some actions here!

78 IBAction We need to actually perform the linkage to associate an event in the UI with an action method in the code IBAction (It is a common error to miss this step when getting started)

79 Wiring Up the IBAction for the Button Control click, drag and......drop here

80 Wiring Up the IBAction for the Button Select the action for pressing this button

81 Verifying Action Connections We can again verify that our connections were correctly wired up using the connections inspector tab However, this time we need to click on the UI element that we setup to perform the action Bunch of events that we can bind to Button presses are typically bound to the Touch Up Inside event

82 When to Declare IBOutlet and IBAction As a general rule, you only need to declare an IBOutlet if you need to read or write any of that UI elements attributes For example, we didn t declare the button to be an IBOutlet because we didn t change the button at runtime Declare an IBAction for methods you plan to call from a UI element If you re not calling it from a UI element, there s no real need to declare it as an IBAction

83 Running Our App Save changes in IB and Xcode, then run the app Again, the app will automatically be deployed and run in the simulator

84 Notice Anything Wrong? Return doesn t do anything!

85 Behind the Magic Next class we ll dive a bit deeper into what we saw happening magically this evening What is the File s Owner? What is the First Responder? How does a NIB get executed? What are all these commented out methods? How does all of this get executed? How do I make the keyboard disappear when the user presses the return key? We ll also look at some of the design patterns that are present in our application

86 Additional Resources The iphone OS Technology Overview does a thorough job of discussing the various iphone OS layers Miscellaneous/Conceptual/iPhoneOSTechOverview/ iphone Application Programming Guide iphone/conceptual/iphoneosprogrammingguide/

87 For Next Class Read chapter 1 of the iphone Application Programming Guide up to (including) the section title Handling Critical Application Tasks iphone/conceptual/iphoneosprogrammingguide/

My First iphone App. 1. Tutorial Overview

My First iphone App. 1. Tutorial Overview My First iphone App 1. Tutorial Overview In this tutorial, you re going to create a very simple application on the iphone or ipod Touch. It has a text field, a label, and a button. You can type your name

More information

Objectives. Submission. Register for an Apple account. Notes on Saving Projects. Xcode Shortcuts. CprE 388 Lab 1: Introduction to Xcode

Objectives. Submission. Register for an Apple account. Notes on Saving Projects. Xcode Shortcuts. CprE 388 Lab 1: Introduction to Xcode Objectives Register for an Apple account Create an application using Xcode Test your application with the iphone simulator Import certificates for development Build your application to the device Expand

More information

CS193P: HelloPoly Walkthrough

CS193P: HelloPoly Walkthrough CS193P: HelloPoly Walkthrough Overview The goal of this walkthrough is to give you a fairly step by step path through building a simple Cocoa Touch application. You are encouraged to follow the walkthrough,

More information

The MVC Design Pattern

The MVC Design Pattern The MVC Design Pattern The structure of iphone applications is based on the Model-View-Controller (MVC) design pattern because it benefits object-oriented programs in several ways. MVC based programs tend

More information

My First iphone App (for Xcode version 6.4)

My First iphone App (for Xcode version 6.4) My First iphone App (for Xcode version 6.4) 1. Tutorial Overview In this tutorial, you re going to create a very simple application on the iphone or ipod Touch. It has a text field, a label, and a button

More information

Developing Applications for ios

Developing Applications for ios Developing Applications for ios Lecture 1: Mobile Applications Development Radu Ionescu raducu.ionescu@gmail.com Faculty of Mathematics and Computer Science University of Bucharest Evaluation Individual

More information

Object-Oriented Programming in Objective-C

Object-Oriented Programming in Objective-C In order to build the powerful, complex, and attractive apps that people want today, you need more complex tools than a keyboard and an empty file. In this section, you visit some of the concepts behind

More information

My First Cocoa Program

My First Cocoa Program My First Cocoa Program 1. Tutorial Overview In this tutorial, you re going to create a very simple Cocoa application for the Mac. Unlike a line-command program, a Cocoa program uses a graphical window

More information

ITP 342 Mobile App Dev. Connections

ITP 342 Mobile App Dev. Connections ITP 342 Mobile App Dev Connections User Interface Interactions First project displayed information to the user, but there was no interaction. We want the users of our app to touch UI components such as

More information

CS193p Spring 2010 Wednesday, March 31, 2010

CS193p Spring 2010 Wednesday, March 31, 2010 CS193p Spring 2010 Logistics Lectures Building 260 (History Corner) Room 034 Monday & Wednesday 4:15pm - 5:30pm Office Hours TBD Homework 7 Weekly Assignments Assigned on Wednesdays (often will be multiweek

More information

Your First iphone OS Application

Your First iphone OS Application Your First iphone OS Application General 2010-03-15 Apple Inc. 2010 Apple Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form

More information

1 Build Your First App. The way to get started is to quit talking and begin doing. Walt Disney

1 Build Your First App. The way to get started is to quit talking and begin doing. Walt Disney 1 Build Your First App The way to get started is to quit talking and begin doing. Walt Disney Copyright 2015 AppCoda Limited All rights reserved. Please do not distribute or share without permission. No

More information

iphone Programming Patrick H. Madden SUNY Binghamton Computer Science Department

iphone Programming Patrick H. Madden SUNY Binghamton Computer Science Department iphone Programming Patrick H. Madden SUNY Binghamton Computer Science Department pmadden@acm.org http://optimal.cs.binghamton.edu General Outline Overview of the tools, and where to get more information

More information

Topics in Mobile Computing

Topics in Mobile Computing Topics in Mobile Computing Workshop 1I - ios Fundamental Prepared by Y.H. KWOK What is ios? From Wikipedia (http://en.wikipedia.org/wiki/ios): ios is an operating system for iphone, ipad and Apple TV.

More information

ITP 342 Mobile App Dev. Connections

ITP 342 Mobile App Dev. Connections ITP 342 Mobile App Dev Connections User Interface Interactions First project displayed information to the user, but there was no interaction. We want the users of our app to touch UI components such as

More information

Your First iphone Application

Your First iphone Application Your First iphone Application General 2009-01-06 Apple Inc. 2009 Apple Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form

More information

Intro to Native ios Development. Dave Koziol Arbormoon Software, Inc.

Intro to Native ios Development. Dave Koziol Arbormoon Software, Inc. Intro to Native ios Development Dave Koziol Arbormoon Software, Inc. About Me Long time Apple Developer (20 WWDCs) Organizer Ann Arbor CocoaHeads President & ios Developer at Arbormoon Software Inc. Wunder

More information

iphone Application Tutorial

iphone Application Tutorial iphone Application Tutorial 2008-06-09 Apple Inc. 2008 Apple Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any

More information

IOS - TEXT FIELD. Use of Text Field. Important Properties of Text Field. Updating Properties in xib

IOS - TEXT FIELD. Use of Text Field. Important Properties of Text Field. Updating Properties in xib IOS - TEXT FIELD http://www.tutorialspoint.com/ios/ios_ui_elements_text_field.htm Copyright tutorialspoint.com Use of Text Field A text field is a UI element that enables the app to get user input. A UITextfield

More information

Stanford CS193p. Developing Applications for ios Fall Stanford CS193p. Fall 2013

Stanford CS193p. Developing Applications for ios Fall Stanford CS193p. Fall 2013 Developing Applications for ios -14 Today What is this class all about? Description Prerequisites Homework / Final Project ios Overview What s in ios? MVC Object-Oriented Design Concept Objective C (Time

More information

ios Core Data Example Application

ios Core Data Example Application ios Core Data Example Application The Core Data framework provides an abstract, object oriented interface to database storage within ios applications. This does not require extensive knowledge of database

More information

AVAudioPlayer. avtouch Application

AVAudioPlayer. avtouch Application AVAudioPlayer avtouch Application iphone Application Index 1. iphone Application 1) iphone Application 2) iphone Application Main Method 3) iphone Application nib(.xib) 2. avtouch Application 1) avtouch

More information

Integrating Game Center into a BuzzTouch 1.5 app

Integrating Game Center into a BuzzTouch 1.5 app into a BuzzTouch 1.5 app This tutorial assumes you have created your app and downloaded the source code; created an App ID in the ios Provisioning Portal, and registered your app in itunes Connect. Step

More information

Navigation bar (Xcode version 4.5.2) 1. Create a new project. From the Xcode menu, select File > New > Project

Navigation bar (Xcode version 4.5.2) 1. Create a new project. From the Xcode menu, select File > New > Project Navigation bar (Xcode version 4.5.2) 1. Create a new project. From the Xcode menu, select File > New > Project Choose the Single View Application template Click Next. In the Choose options for your new

More information

Cocoa Programming A Quick-Start Guide for Developers

Cocoa Programming A Quick-Start Guide for Developers Extracted from: Cocoa Programming A Quick-Start Guide for Developers This PDF file contains pages extracted from Cocoa Programming, published by the Pragmatic Bookshelf. For more information or to purchase

More information

Building GUIs with UIKit. Kevin Cathey

Building GUIs with UIKit. Kevin Cathey Building GUIs with UIKit Kevin Cathey Building GUIs with UIKit acm.uiuc.edu/macwarriors/devphone Building GUIs with UIKit What is UIKit? acm.uiuc.edu/macwarriors/devphone Building GUIs with UIKit What

More information

S A M P L E C H A P T E R

S A M P L E C H A P T E R SAMPLE CHAPTER Anyone Can Create an App by Wendy L. Wise Chapter 5 Copyright 2017 Manning Publications brief contents PART 1 YOUR VERY FIRST APP...1 1 Getting started 3 2 Building your first app 14 3 Your

More information

ITP 342 Mobile App Dev. Interface Builder in Xcode

ITP 342 Mobile App Dev. Interface Builder in Xcode ITP 342 Mobile App Dev Interface Builder in Xcode New Project From the Main Menu, select the File à New à Project option For the template, make sure Application is selected under ios on the left-hand side

More information

Mobile App Development. ios Platform

Mobile App Development. ios Platform Mobile App Development ios Platform Overview Introduction Development Environment & Tools App Store Pros & Cons Programming Recommendations Objective-C Primer Demo What is ios? An operating system that

More information

Learn to make desktop LE

Learn to make desktop LE HACKING WITH SWIFT COMPLETE TUTORIAL COURSE Learn to make desktop LE P apps with real-worldam S Swift projects REEPaul Hudson F Project 1 Storm Viewer Get started coding in Swift by making an image viewer

More information

Assignment III: Graphing Calculator

Assignment III: Graphing Calculator Assignment III: Graphing Calculator Objective The goal of this assignment is to reuse your CalculatorBrain and CalculatorViewController objects to build a Graphing Calculator. By doing this, you will gain

More information

Registering for the Apple Developer Program

Registering for the Apple Developer Program It isn t necessary to be a member of the Apple Developer Program if you don t intend to submit apps to the App Stores, or don t need the cloud-dependent features. We strongly recommend joining, though,

More information

Building Mapping Apps for ios With Swift

Building Mapping Apps for ios With Swift Building Mapping Apps for ios With Swift Jeff Linwood This book is for sale at http://leanpub.com/buildingmappingappsforioswithswift This version was published on 2017-09-09 This is a Leanpub book. Leanpub

More information

Designing iphone Applications

Designing iphone Applications Designing iphone Applications 4 Two Flavors of Mail 5 Organizing Content 6 Organizing Content 6 Organizing Content 6 Organizing Content 6 Organizing Content Focus on your user s data 6 Organizing Content

More information

iphone Programming Touch, Sound, and More! Norman McEntire Founder Servin Flashlight CodeTour TouchCount CodeTour

iphone Programming Touch, Sound, and More! Norman McEntire Founder Servin Flashlight CodeTour TouchCount CodeTour iphone Programming Touch, Sound, and More! Norman McEntire Founder Servin 1 Legal Info iphone is a trademark of Apple Inc. Servin is a trademark of Servin Corporation 2 Welcome Welcome! Thank you! My promise

More information

Xcode Tricks. ios App Development Fall 2010 Lecture 13

Xcode Tricks. ios App Development Fall 2010 Lecture 13 Xcode Tricks ios App Development Fall 2010 Lecture 13 Questions? Announcements Reminder: Assignment #3 due Monday, October 18 th by 11:59pm Today s Topics Building & Running Code Troubleshooting Debugging

More information

Intro to Development for ios. Dave Koziol Arbormoon Software, Inc.

Intro to Development for ios. Dave Koziol Arbormoon Software, Inc. Intro to Development for ios Dave Koziol Arbormoon Software, Inc. About Me Long time Apple Developer (21 WWDCs) Organizer Ann Arbor CocoaHeads President & ios Developer at Arbormoon Software Inc. Multiple

More information

Cocoa. Last Week... Music 3SI: Introduction to Audio/Multimedia App. Programming. Today... Why Cocoa? Wikipedia - Cocoa

Cocoa. Last Week... Music 3SI: Introduction to Audio/Multimedia App. Programming. Today... Why Cocoa? Wikipedia - Cocoa Music 3SI: Introduction to Audio/Multimedia App. Programming IDE (briefly) VST Plug-in Assignment 1 hints Last Week... Week #5-5/5/2006 CCRMA, Department of Music Stanford University 1 2 Today... Cocoa

More information

Widget Tour. iphone and ipod touch Development Fall 2009 Lecture 7

Widget Tour. iphone and ipod touch Development Fall 2009 Lecture 7 Widget Tour iphone and ipod touch Development Fall 2009 Lecture 7 Questions? Announcements Assignment #2 due Tonight by 11:59pm Today s Topics Controls Buttons Switches Sliders Segmented Controls Text

More information

Mac OS X and ios operating systems. Lab 1 Introduction to Mac OS X and ios app development. Gdańsk 2015 Tomasz Idzi

Mac OS X and ios operating systems. Lab 1 Introduction to Mac OS X and ios app development. Gdańsk 2015 Tomasz Idzi Mac OS X and ios operating systems Lab 1 Introduction to Mac OS X and ios app development Gdańsk 2015 Tomasz Idzi Introduction This lab is designed to acquaint the student with the basic functionality

More information

OVERVIEW. Why learn ios programming? Share first-hand experience. Identify platform differences. Identify similarities with.net

OVERVIEW. Why learn ios programming? Share first-hand experience. Identify platform differences. Identify similarities with.net OVERVIEW Why learn ios programming? Share first-hand experience. Identify platform differences. Identify similarities with.net Microsoft MVP for 4 years C#, WinForms, WPF, Silverlight Joined Cynergy about

More information

Structuring an App Copyright 2013 Apple Inc. All Rights Reserved.

Structuring an App Copyright 2013 Apple Inc. All Rights Reserved. Structuring an App App Development Process (page 30) Designing a User Interface (page 36) Defining the Interaction (page 42) Tutorial: Storyboards (page 47) 29 App Development Process Although the task

More information

ios Application Development Course Details

ios Application Development Course Details ios Application Development Course Details By Besant Technologies Course Name Category Venue ios Application Development Mobile Application Development Besant Technologies No.24, Nagendra Nagar, Velachery

More information

ios Developer s Guide Version 1.0

ios Developer s Guide Version 1.0 HealthyFROGS ios Developer s Guide ios Developer s Guide Version 1.0 Tuesday May 7, 2013 2012-2013 Computer Science Department, Texas Christian University - All Rights Reserved HealthyFROGS ios Developer

More information

CS193E: Temperature Converter Walkthrough

CS193E: Temperature Converter Walkthrough CS193E: Temperature Converter Walkthrough The goal of this walkthrough is to give you a fairly step by step path through building a simple Cocoa application. You are encouraged to follow the walkthrough,

More information

CLOCK4 TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION

CLOCK4 TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION http:clanmills.com Page 1/8 CLOCK4 TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION Life in a new programming environment has to start somewhere. Everybody knows the hello world application written in

More information

CLOCK TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION

CLOCK TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION http:clanmills.com Page 1/10 CLOCK TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION Life in a new programming environment has to start somewhere. Everybody knows the hello world application written in

More information

User Experience: Windows & Views

User Experience: Windows & Views View Controller Programming Guide for ios User Experience: Windows & Views 2011-01-07 Apple Inc. 2011 Apple Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval

More information

Corrections and version notes

Corrections and version notes Last updated 7 th May, 2014 Programming apps for the iphone Corrections and version notes Please feel free to email Graeme (gbsummers@graemesummers.info) for additional help or clarification on any of

More information

Mobile Apps 2010 iphone and Android

Mobile Apps 2010 iphone and Android Mobile Apps 2010 iphone and Android March 9, 2010 Norman McEntire, Founder Servin Corporation - http://servin.com Technology Training for Technology ProfessionalsTM norman.mcentire@servin.com 1 Legal Info

More information

ITP 342 Advanced Mobile App Dev. Memory

ITP 342 Advanced Mobile App Dev. Memory ITP 342 Advanced Mobile App Dev Memory Memory Management Objective-C provides two methods of application memory management. 1. In the method described in this guide, referred to as manual retain-release

More information

ios 9 SDK Development

ios 9 SDK Development Extracted from: ios 9 SDK Development Creating iphone and ipad Apps with Swift This PDF file contains pages extracted from ios 9 SDK Development, published by the Pragmatic Bookshelf. For more information

More information

Beginning Mac Programming

Beginning Mac Programming Extracted from: Beginning Mac Programming Develop with Objective-C and Cocoa This PDF file contains pages extracted from Beginning Mac Programming, published by the Pragmatic Bookshelf. For more information

More information

Christopher K. Fairbairn Johannes Fahrenkrug Collin Ruffenach

Christopher K. Fairbairn Johannes Fahrenkrug Collin Ruffenach S AMPLE CHAPTER Christopher K. Fairbairn Johannes Fahrenkrug Collin Ruffenach MANNING Objective-C Fundamentals by Christopher K. Fairbairn Johannes Fahrenkrug Collin Ruffenach Chapter 1 Copyright 2011

More information

COPYRIGHTED MATERIAL. 1Hello ios! A Suitable Mac. ios Developer Essentials

COPYRIGHTED MATERIAL. 1Hello ios! A Suitable Mac. ios Developer Essentials 1Hello ios! Hello and welcome to the exciting world of ios application development. ios is Apple s operating system for mobile devices; the current version as of writing this book is 5.0. It was originally

More information

Contents. iphone Training. Industry Trainers. Classroom Training Online Training ON-DEMAND Training. Read what you need

Contents. iphone Training. Industry Trainers. Classroom Training Online Training ON-DEMAND Training. Read what you need iphone Training Contents About iphone Training Our ios training classes can help you get off to a running start in iphone, ipod and ipad app development. Learn from expert Objective-C developers with years

More information

Praktikum Entwicklung von Mediensystemen mit

Praktikum Entwicklung von Mediensystemen mit Praktikum Entwicklung von Mediensystemen mit Sommersemester 2013 Fabius Steinberger, Dr. Alexander De Luca Today Organization Introduction to ios programming Hello World Assignment 1 2 Organization 6 ECTS

More information

Assignment II: Foundation Calculator

Assignment II: Foundation Calculator Assignment II: Foundation Calculator Objective The goal of this assignment is to extend the CalculatorBrain from last week to allow inputting variables into the expression the user is typing into the calculator.

More information

Welcome to CS193E. Mac OS X Cocoa Programming. James Dempsey Paul Marcos

Welcome to CS193E. Mac OS X Cocoa Programming. James Dempsey Paul Marcos Welcome to CS193E Mac OS X Cocoa Programming James Dempsey dempsey1@stanford.edu Paul Marcos pmarcos@stanford.edu Intros James Dempsey Paul Marcos TA - David

More information

Page 1. GUI Programming. Lecture 13: iphone Basics. iphone. iphone

Page 1. GUI Programming. Lecture 13: iphone Basics. iphone. iphone GUI Programming Lecture 13: iphone Basics Until now, we have only seen code for standard GUIs for standard WIMP interfaces. Today we ll look at some code for programming mobile devices. on the surface,

More information

CSC 581: Mobile App Development Spring 2018

CSC 581: Mobile App Development Spring 2018 CSC 581: Mobile App Development Spring 2018 Unit 2: Introduciton to the UIKit UIKit, UIViews UIControl subclasses 1 UIKit the UIKit is a code framework for building mobile apps the foundational class for

More information

due by noon ET on Wed 4/4 Note that submitting this project s Google form will take some time; best not to wait until the last minute!

due by noon ET on Wed 4/4 Note that submitting this project s Google form will take some time; best not to wait until the last minute! ios: Setup Hello, World: ios Edition due by noon ET on Wed 4/4 Note that submitting this project s Google form will take some time; best not to wait until the last minute! Ingredients. Objective- C Xcode

More information

User Interfaces. Lecture 15. Application Programming on Mac OS. Hamza Bennani September 4, 2018

User Interfaces. Lecture 15. Application Programming on Mac OS. Hamza Bennani September 4, 2018 User Interfaces Lecture 15 Application Programming on Mac OS Hamza Bennani hamza@hamzabennani.com September 4, 2018 Logistics Office hours: Tue/Thu, 2pm to 3pm. Office: 250 Geoff Wyvill. Acknowledgment:

More information

Assignment I Walkthrough

Assignment I Walkthrough Assignment I Walkthrough Objective Reproduce the demonstration (building a calculator) given in class. Materials By this point, you should have been sent an invitation to your sunet e-mail to join the

More information

Developing Applications for ios

Developing Applications for ios Developing Applications for ios Lab 2: RPN Calculator App (1 of 3) Radu Ionescu raducu.ionescu@gmail.com Faculty of Mathematics and Computer Science University of Bucharest Task 1 Task: Create a new application

More information

Toyin Adedokun & Daniel Laughlin. Exploring the iphone SDK

Toyin Adedokun & Daniel Laughlin. Exploring the iphone SDK Toyin Adedokun & Daniel Laughlin Exploring the iphone SDK Purpose - Flashcards Provide simple way of creating & viewing flashcards Clean, simple interface Integrate with familiar application such as Google

More information

View Controllers CPRE 388

View Controllers CPRE 388 View Controllers CPRE 388 View Controllers Manage views in model view controller design template. Many types: custom view controller; container view controller; modal view controller. Custom View controllers

More information

Your First ios 7 App. Everything you need to know to build and submit your first ios app. Ash Furrow

Your First ios 7 App. Everything you need to know to build and submit your first ios app. Ash Furrow Your First ios 7 App Everything you need to know to build and submit your first ios app. Ash Furrow This book is for sale at http://leanpub.com/your-first-ios-app This version was published on 2014-09-13

More information

Introduction... 1 Part I: Getting Started... 7

Introduction... 1 Part I: Getting Started... 7 Contents at a Glance Introduction... 1 Part I: Getting Started... 7 Chapter 1: Creating Killer iphone Applications...9 Chapter 2: Looking Behind the Screen...25 Chapter 3: Enlisting in the Developer Corps...43

More information

ITP 342 Mobile App Dev. Fundamentals

ITP 342 Mobile App Dev. Fundamentals ITP 342 Mobile App Dev Fundamentals Objective-C Classes Encapsulate data with the methods that operate on that data An object is a runtime instance of a class Contains its own in-memory copy of the instance

More information

Web 2.0 and iphone Application Development Workshop. Lab 5: Multimedia on iphone

Web 2.0 and iphone Application Development Workshop. Lab 5: Multimedia on iphone Web 2.0 and iphone Application Development Workshop This lab is prepared by: Department of Electrical and Electronic Engineering, Faculty of Engineering, The University of Hong Kong Lab 5: Multimedia on

More information

X Review. Mac OS X Roots: NeXT. BWS Available for virtually every OS

X Review. Mac OS X Roots: NeXT. BWS Available for virtually every OS X Review Distributed window system Server is the user s Terminal Client runs the application WM Xlib Application Widget Set Xt Intrinsics Xlib Highly modular X Server (exchange WM, Widget Set) BWS Available

More information

Implementing UI Designs in Interface Builder

Implementing UI Designs in Interface Builder Developer Tools #WWDC15 Implementing UI Designs in Interface Builder Session 407 Kevin Cathey Interface Builder Engineer Tony Ricciardi Interface Builder Engineer 2015 Apple Inc. All rights reserved. Redistribution

More information

CS193P - Lecture 3. iphone Application Development. Custom Classes Object Lifecycle Autorelease Properties

CS193P - Lecture 3. iphone Application Development. Custom Classes Object Lifecycle Autorelease Properties CS193P - Lecture 3 iphone Application Development Custom Classes Object Lifecycle Autorelease Properties 1 Announcements Assignments 1A and 1B due Wednesday 1/13 at 11:59 PM Enrolled Stanford students

More information

When we re first learning Cocoa (or Java, or Qt, or any other application framework),

When we re first learning Cocoa (or Java, or Qt, or any other application framework), MacDevCenter http://www.macdevcenter.com/lpt/a/4752 6 April 2004 The Cocoa Controller Layer by Michael Beam When we re first learning Cocoa (or Java, or Qt, or any other application framework), one of

More information

Hello! ios Development

Hello! ios Development SAMPLE CHAPTER Hello! ios Development by Lou Franco Eitan Mendelowitz Chapter 1 Copyright 2013 Manning Publications Brief contents PART 1 HELLO! IPHONE 1 1 Hello! iphone 3 2 Thinking like an iphone developer

More information

CS193E Lecture 17. Multiple Document Windows OpenGL & Cocoa

CS193E Lecture 17. Multiple Document Windows OpenGL & Cocoa CS193E Lecture 17 Multiple Document Windows OpenGL & Cocoa Multiple Views onto a Model Xcode Keynote Finder Dreamweaver TreeGenerator 3D NSDocument Architecture Supports two approaches: Simple, single

More information

Tip Calculator App Introducing Swift, Text Fields, Sliders, Outlets, Actions, View Controllers, Event Handling, NSDecimalNumber,

Tip Calculator App Introducing Swift, Text Fields, Sliders, Outlets, Actions, View Controllers, Event Handling, NSDecimalNumber, 3 Tip Calculator App Introducing Swift, Text Fields, Sliders, Outlets, Actions, View Controllers, Event Handling, NSDecimalNumber, NSNumberFormatter and Automatic Reference Counting Objectives In this

More information

S A M P L E C H A P T E R

S A M P L E C H A P T E R SAMPLE CHAPTER Anyone Can Create an App by Wendy L. Wise Chapter 2 Copyright 2017 Manning Publications brief contents PART 1 YOUR VERY FIRST APP...1 1 Getting started 3 2 Building your first app 14 3 Your

More information

Getting Started with Apple ios Development Link-OS SDK Objective-C

Getting Started with Apple ios Development Link-OS SDK Objective-C Getting Started with Apple ios Development Link-OS SDK Objective-C Overview This document describes the end to end process of designing, packaging, deploying and running an Apple iphone /ipod application

More information

Announcement. Final Project Proposal Presentations and Updates

Announcement. Final Project Proposal Presentations and Updates Announcement Start Final Project Pitches on Wednesday Presentation slides dues by Tuesday at 11:59 PM Email slides to cse438ta@gmail.com Extensible Networking Platform 1 1 - CSE 438 Mobile Application

More information

Using Advanced Interface Objects and Views

Using Advanced Interface Objects and Views HOUR 9 Using Advanced Interface Objects and Views What You ll Learn This Hour:. How to use segmented controls (a.k.a. button bars). Ways of inputting Boolean values via switches. How to include web content

More information

Organizing Screens with Mission Control

Organizing Screens with Mission Control 7 Organizing Screens with Mission Control If you re like a lot of Mac users, you like to do a lot of things at once. No matter how big your screen may be, it can still feel crowded as you open and arrange

More information

Building an Application

Building an Application Building an Application 7 Anatomy of an Application Compiled code Your code Frameworks Nib files UI elements and other objects Details about object relationships Resources (images, sounds, strings, etc)

More information

Bindings Example Exercise James Dempsey - WWDC Pre-Show Cocoa Workshop

Bindings Example Exercise James Dempsey - WWDC Pre-Show Cocoa Workshop Bindings Example Exercise James Dempsey - WWDC Pre-Show Cocoa Workshop In this exercise you will create a basic document-based application using Cocoa Bindings. This application will allow the user to

More information

Appeasing the Tiki Gods

Appeasing the Tiki Gods Chapter 2 Appeasing the Tiki Gods As you re probably well aware, it has become something of a tradition to call the first project in any book on programming Hello, World. We considered breaking with this

More information

COMPLETE TUTORIAL COURSE. Learn to make tvos LE. apps with real-worldam S F

COMPLETE TUTORIAL COURSE. Learn to make tvos LE. apps with real-worldam S F HACKING WITH SWIFT COMPLETE TUTORIAL COURSE Learn to make tvos LE P apps with real-worldam S Swift projects REEPaul Hudson F Project 1 Randomly Beautiful 2 www.hackingwithswift.com Setting up In this first

More information

Mobile Computing. Overview. What is ios? 8/26/12. CSE 40814/60814 Fall 2012

Mobile Computing. Overview. What is ios? 8/26/12. CSE 40814/60814 Fall 2012 Mobile Computing CSE 40814/60814 Fall 2012 Overview ios is the opera8ng system that runs iphones, ipod Touches, ipads, and Apple TVs. The language used to develop sogware for ios is Objec8ve- C (very similar

More information

Announcements. Today s Topics

Announcements. Today s Topics Announcements Lab 2 is due tonight by 11:59 PM Late policy is 10% of lab total per day late So -7.5 points per day late for lab 2 Labs 3 and 4 are posted on the course website Extensible Networking Platform

More information

iphone Development Setup Instructions Nikhil Yadav Pervasive Health Fall 2011

iphone Development Setup Instructions Nikhil Yadav Pervasive Health Fall 2011 iphone Development Setup Instructions Nikhil Yadav Pervasive Health Fall 2011 Requirements Apple Mac Computer (Desktop or laptop) with recent snow leopard builds Apple Developer Registered Profile (create

More information

Lecture 1 Introduction to Android. App Development for Mobile Devices. App Development for Mobile Devices. Announcement.

Lecture 1 Introduction to Android. App Development for Mobile Devices. App Development for Mobile Devices. Announcement. CSCE 315: Android Lectures (1/2) Dr. Jaerock Kwon App Development for Mobile Devices Jaerock Kwon, Ph.D. Assistant Professor in Computer Engineering App Development for Mobile Devices Jaerock Kwon, Ph.D.

More information

Mobile Development - Lab 2

Mobile Development - Lab 2 Mobile Development - Lab 2 Objectives Illustrate the delegation mechanism through examples Use a simple Web service Show how to simply make a hybrid app Display data with a grid layout Delegation pattern

More information

IOS 9 App Development Essentials: Learn To Develop IOS 9 Apps Using Xcode 7 And Swift 2 PDF

IOS 9 App Development Essentials: Learn To Develop IOS 9 Apps Using Xcode 7 And Swift 2 PDF IOS 9 App Development Essentials: Learn To Develop IOS 9 Apps Using Xcode 7 And Swift 2 PDF ios 9 App Development Essentials is latest edition of this popular book series and has now been fully updated

More information

In the first class, you'll learn how to create a simple single-view app, following a 3-step process:

In the first class, you'll learn how to create a simple single-view app, following a 3-step process: Class 1 In the first class, you'll learn how to create a simple single-view app, following a 3-step process: 1. Design the app's user interface (UI) in Xcode's storyboard. 2. Open the assistant editor,

More information

Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Andriod Development Lecture 09

Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Andriod Development Lecture 09 Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Andriod Development Lecture 09 Hello, today we will create another application called a math quiz. This

More information

Working with Text, Keyboards, and Buttons

Working with Text, Keyboards, and Buttons HOUR 7 Working with Text, Keyboards, and Buttons What You ll Learn in This Hour: u How to use text fields u Input and output in scrollable text views u How to enable data detectors u A way to spruce up

More information

ios vs Android By: Group 2

ios vs Android By: Group 2 ios vs Android By: Group 2 The ios System Memory Section A43972 Delta Core OS Layer Core Services Layer Media Layer CoCoa Touch Layer Memory Section A43972 Delta Aaron Josephs Core OS Layer - Core OS has

More information

Architecting ios Project. Massimo Oliviero

Architecting ios Project. Massimo Oliviero Architecting ios Project Massimo Oliviero Massimo Oliviero Freelance Software Developer web http://www.massimooliviero.net email massimo.oliviero@gmail.com slide http://www.slideshare.net/massimooliviero

More information

Xcode. Chapter 1. Creating a Project

Xcode. Chapter 1. Creating a Project Chapter 1 Xcode Many computer books use Chapter 1 to cover introductory material. Xcode Tools Sensei is not one of those books. I want you to start learning immediately. After reading this chapter you

More information

Collection Views Hands-On Challenges

Collection Views Hands-On Challenges Collection Views Hands-On Challenges Copyright 2015 Razeware LLC. All rights reserved. No part of this book or corresponding materials (such as text, images, or source code) may be reproduced or distributed

More information