lectures/2/src2/nib1/nib1/appdelegate.h // AppDelegate.h // Nib1 // David J. Malan // Harvard University //

Size: px
Start display at page:

Download "lectures/2/src2/nib1/nib1/appdelegate.h // AppDelegate.h // Nib1 // David J. Malan // Harvard University //"

Transcription

1 lectures/2/src2/nib1/nib1/appdelegate.h AppDelegate.h Nib1 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application implemented with a nib, plus IBAction and AppDelegate : UIResponder (strong, nonatomic) ViewController (strong, nonatomic) UIWindow *window;

2 lectures/2/src2/nib1/nib1/appdelegate.m AppDelegate.m Nib1 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application implemented with a nib, plus IBAction and IBOutlet. #import "AppDelegate.h" #import AppDelegate - (BOOL)application:(UIApplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions self.window = [[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; self.viewcontroller = [[ViewController alloc] initwithnibname:@"viewcontroller" bundle:nil]; self.window.rootviewcontroller = self.viewcontroller; [self.window makekeyandvisible]; return YES;

3 lectures/2/src2/nib1/nib1/main.m main.m Nib1 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application implemented with a nib, plus IBAction and IBOutlet. #import "AppDelegate.h" int main(int argc, char return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

4 lectures/2/src2/nib1/nib1/viewcontroller.h ViewController.h Nib1 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application implemented with a nib, plus IBAction and ViewController : (nonatomic, strong) IBOutlet UITextField *textfield; - (IBAction)go:(id)sender;

5 lectures/2/src2/nib1/nib1/viewcontroller.m ViewController.m Nib1 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application implemented with a nib, plus IBAction and IBOutlet. #import ViewController - (IBAction)go:(id)sender hide keyboard [self.textfield resignfirstresponder]; show alert NSString *s = [NSString stringwithformat:@"hello, %@", self.textfield.text]; UIAlertView *alert = [[UIAlertView alloc] initwithtitle:@"hello" message:s delegate:nil cancelbuttontitle:@"thanks!" otherbuttontitles:nil]; [alert show];

6 lectures/2/src2/nib2/nib2/appdelegate.h AppDelegate.h Nib2 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application with a AppDelegate : UIResponder (strong, nonatomic) ViewController (strong, nonatomic) UIWindow *window;

7 lectures/2/src2/nib2/nib2/appdelegate.m AppDelegate.m Nib2 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application with a UIAlertViewDelegate. #import "AppDelegate.h" #import AppDelegate - (BOOL)application:(UIApplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions self.window = [[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; self.viewcontroller = [[ViewController alloc] initwithnibname:@"viewcontroller" bundle:nil]; self.window.rootviewcontroller = self.viewcontroller; [self.window makekeyandvisible]; return YES;

8 lectures/2/src2/nib2/nib2/main.m main.m Nib2 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application with a UIAlertViewDelegate. #import "AppDelegate.h" int main(int argc, char return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

9 lectures/2/src2/nib2/nib2/viewcontroller.h ViewController.h Nib2 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application with a ViewController : UIViewController (nonatomic, strong) IBOutlet UITextField *textfield; - (IBAction)go:(id)sender;

10 lectures/2/src2/nib2/nib2/viewcontroller.m ViewController.m Nib2 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application with a UIAlertViewDelegate. #import ViewController - (void)alertview:(uialertview *)alertview diddismisswithbuttonindex:(nsinteger)buttonindex clear text field self.textfield.text = nil; - (IBAction)go:(id)sender hide keyboard [self.textfield resignfirstresponder]; show alert NSString *s = [NSString stringwithformat:@"hello, %@", self.textfield.text]; UIAlertView *alert = [[UIAlertView alloc] initwithtitle:@"hello" message:s delegate:self cancelbuttontitle:@"thanks!" otherbuttontitles:nil]; [alert show];

11 lectures/2/src2/nonib/nonib/appdelegate.h AppDelegate.h NoNib David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application with a view implemented without a nib (or AppDelegate : UIResponder (strong, nonatomic) ViewController (strong, nonatomic) UIWindow *window;

12 lectures/2/src2/nonib/nonib/appdelegate.m AppDelegate.m NoNib David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application with a view implemented without a nib (or storyboard). #import "AppDelegate.h" #import AppDelegate - (BOOL)application:(UIApplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions self.window = [[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; self.viewcontroller = [[ViewController alloc] init]; self.window.rootviewcontroller = self.viewcontroller; [self.window makekeyandvisible]; return YES;

13 lectures/2/src2/nonib/nonib/main.m main.m NoNib David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application with a view implemented without a nib (or storyboard). #import "AppDelegate.h" int main(int argc, char return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

14 lectures/2/src2/nonib/nonib/viewcontroller.h ViewController.h NoNib David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application with a view implemented without a nib (or ViewController : (nonatomic, readwrite, strong) UITextField *textfield; - (void)alertview:(uialertview *)alertview diddismisswithbuttonindex:(nsinteger)buttonindex; - (void)go:(id)sender;

15 lectures/2/src2/nonib/nonib/viewcontroller.m ViewController.m NoNib David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application with a view implemented without a nib (or storyboard). #import ViewController #pragma mark - UIViewController - (void)loadview create view self.view = [[UIView alloc] initwithframe:[uiscreen mainscreen].applicationframe]; self.view.backgroundcolor = [UIColor whitecolor]; create text field CGRect frame = CGRectMake(20, 20, 280, 31); self.textfield = [[UITextField alloc] initwithframe:frame]; self.textfield.autocapitalizationtype = UITextAutocapitalizationTypeWords; self.textfield.autocorrectiontype = UITextAutocorrectionTypeNo; self.textfield.borderstyle = UITextBorderStyleRoundedRect; self.textfield.contentverticalalignment = UIControlContentVerticalAlignmentCenter; self.textfield.font = [UIFont systemfontofsize:[uifont systemfontsize]]; self.textfield.placeholder self.textfield.returnkeytype = UIReturnKeyGo; listen for Did End on Exit [self.textfield addtarget:self action:@selector(go:) forcontrolevents:uicontroleventeditingdidendonexit]; add text field to view [self.view addsubview:self.textfield]; create button frame = CGRectMake(124, 59, 72, 37); UIButton *button = [UIButton buttonwithtype:uibuttontyperoundedrect]; button.frame = frame; [button settitle:@"go" forstate:uicontrolstatenormal];

16 lectures/2/src2/nonib/nonib/viewcontroller.m listen for Touch Up Inside [button addtarget:self action:@selector(go:) forcontrolevents:uicontroleventtouchupinside]; add button to view [self.view addsubview:button]; #pragma mark - UIAlertViewDelegate - (void)alertview:(uialertview *)alertview diddismisswithbuttonindex:(nsinteger)buttonindex clear text field self.textfield.text = nil; #pragma mark - Actions - (void)go:(id)sender hide keyboard [self.textfield resignfirstresponder]; show alert NSString *s = [NSString stringwithformat:@"hello, %@", self.textfield.text]; UIAlertView *alert = [[UIAlertView alloc] initwithtitle:@"hello" message:s delegate:self cancelbuttontitle:@"thanks!" otherbuttontitles:nil]; [alert show];

17 lectures/2/src2/singleview/singleview/appdelegate.h AppDelegate.h SingleView David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View AppDelegate : UIResponder (strong, nonatomic) ViewController (strong, nonatomic) UIWindow *window;

18 lectures/2/src2/singleview/singleview/appdelegate.m AppDelegate.m SingleView David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application. #import "AppDelegate.h" #import AppDelegate - (BOOL)application:(UIApplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions self.window = [[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; self.viewcontroller = [[ViewController alloc] initwithnibname:@"viewcontroller" bundle:nil]; self.window.rootviewcontroller = self.viewcontroller; [self.window makekeyandvisible]; return YES;

19 lectures/2/src2/singleview/singleview/main.m main.m SingleView David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application. #import "AppDelegate.h" int main(int argc, char return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

20 lectures/2/src2/singleview/singleview/viewcontroller.h ViewController.h SingleView David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View ViewController : UIViewController

21 lectures/2/src2/singleview/singleview/viewcontroller.m ViewController.m SingleView David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application. #import ViewController

22 lectures/2/src2/utility/utility/appdelegate.h AppDelegate.h Utility David J. Malan Harvard University malan@harvard.edu Demonstrates a Utility AppDelegate : UIResponder (strong, nonatomic) MainViewController (strong, nonatomic) UIWindow *window;

23 lectures/2/src2/utility/utility/appdelegate.m AppDelegate.m Utility David J. Malan Harvard University malan@harvard.edu Demonstrates a Utility Application. #import "AppDelegate.h" #import AppDelegate - (BOOL)application:(UIApplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions self.window = [[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; self.mainviewcontroller = [[MainViewController alloc] initwithnibname:@"mainviewcontroller" bundle:nil]; self.window.rootviewcontroller = self.mainviewcontroller; [self.window makekeyandvisible]; return YES;

24 lectures/2/src2/utility/utility/flipsideviewcontroller.h FlipsideViewController.h Utility David J. Malan Harvard University malan@harvard.edu Demonstrates a Utility FlipsideViewControllerDelegate - (void)flipsideviewcontrollerdidfinish:(flipsideviewcontroller FlipsideViewController : (weak, nonatomic) id <FlipsideViewControllerDelegate> delegate; - (IBAction)done:(id)sender;

25 lectures/2/src2/utility/utility/flipsideviewcontroller.m FlipsideViewController.m Utility David J. Malan Harvard University malan@harvard.edu Demonstrates a Utility Application. #import FlipsideViewController - (IBAction)done:(id)sender [self.delegate flipsideviewcontrollerdidfinish:self];

26 lectures/2/src2/utility/utility/main.m main.m Utility David J. Malan Harvard University malan@harvard.edu Demonstrates a Utility Application. #import "AppDelegate.h" int main(int argc, char return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

27 lectures/2/src2/utility/utility/mainviewcontroller.h MainViewController.h Utility David J. Malan Harvard University malan@harvard.edu Demonstrates a Utility Application. #import MainViewController : UIViewController <FlipsideViewControllerDelegate> - (IBAction)showInfo:(id)sender;

28 lectures/2/src2/utility/utility/mainviewcontroller.m MainViewController.m Utility David J. Malan Harvard University malan@harvard.edu Demonstrates a Utility Application. #import MainViewController - (void)flipsideviewcontrollerdidfinish:(flipsideviewcontroller *)controller [self dismissviewcontrolleranimated:yes completion:nil]; - (IBAction)showInfo:(id)sender FlipsideViewController *controller = [[FlipsideViewController alloc] initwithnibname:@"flipsideviewcontroller" bundle:nil]; controller.delegate = self; controller.modaltransitionstyle = UIModalTransitionStyleFlipHorizontal; [self presentviewcontroller:controller animated:yes completion:nil];

src3/bettertextfield/bettertextfield/appdelegate.h // AppDelegate.h // BetterTextField

src3/bettertextfield/bettertextfield/appdelegate.h // AppDelegate.h // BetterTextField src3/bettertextfield/bettertextfield/appdelegate.h 1 1 1 1 AppDelegate.h BetterTextField Created by Tommy MacWilliam on 3/7/ Copyright (c) 2012 MyCompanyName. All rights reserved. #import

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

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer About the Tutorial ios is a mobile operating system developed and distributed by Apple Inc. It was originally released in 2007 for the iphone, ipod Touch, and Apple TV. ios is derived from OS X, with which

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

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

COPYRIGHTED MATERIAL. part I Developing a Professional UI. Chapter 1: Creating a Personal Library. Chapter 2: Advancing with Tableviews

COPYRIGHTED MATERIAL. part I Developing a Professional UI. Chapter 1: Creating a Personal Library. Chapter 2: Advancing with Tableviews part I Developing a Professional UI Chapter 1: Creating a Personal Library Chapter 2: Advancing with Tableviews Chapter 3: Advancing with Map Kit Chapter 4: Understanding Action Views and Alerts Chapter

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

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

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

Produced by. Design Patterns. MSc in Computer Science. Eamonn de Leastar

Produced by. Design Patterns. MSc in Computer Science. Eamonn de Leastar Design Patterns MSc in Computer Science Produced by Eamonn de Leastar (edeleastar@wit.ie) Department of Computing, Maths & Physics Waterford Institute of Technology http://www.wit.ie http://elearning.wit.ie

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

1.1 Why Foxit Mobile PDF SDK is your choice Foxit Mobile PDF SDK Key features Evaluation...

1.1 Why Foxit Mobile PDF SDK is your choice Foxit Mobile PDF SDK Key features Evaluation... TABLE OF CONTENTS 1 Introduction to...2 1.1 Why is your choice... 2 1.2... 3 1.3 Key features... 4 1.4 Evaluation... 4 1.5 License... 5 1.6 About this Guide... 5 2 Getting Started...6 2.1 Requirements...

More information

ITP 342 Mobile App Dev. Alerts

ITP 342 Mobile App Dev. Alerts ITP 342 Mobile App Dev Alerts Alerts UIAlertController replaces both UIAlertView and UIActionSheet, thereby unifying the concept of alerts across the system, whether presented modally or in a popover.

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 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

Learning ios 8 for Enterprise

Learning ios 8 for Enterprise Learning ios 8 for Enterprise Design and develop stunning ios applications for business environments Mayank Birani BIRMINGHAM - MUMBAI Learning ios 8 for Enterprise Copyright 2014 Packt Publishing All

More information

Document Version Date: 1st March, 2015

Document Version Date: 1st March, 2015 7 Minute Fitness: ios(swift) Application Document Version 1.0.1 Date: 1st March, 2015 2 [7 MINUTE FITNESS: APP DOCUMENTATION] Important Notes:... 5 AppDelegate Class Reference... 6 Tasks... 6 Instance

More information

imate: ios Application

imate: ios Application imate: ios Application Document Version 1.0.1 Date: 27 th May, 2014 2 [IMATE: IOS APPLICATION] Contents AppDelegate Class Reference... 4 Tasks... 4 Properties... 4 Instance Methods... 4 ChatMenuViewController

More information

Why Model-View-Controller?

Why Model-View-Controller? View Controllers Why Model-View-Controller? Ever used the word spaghetti to describe code? Clear responsibilities make things easier to maintain Avoid having one monster class that does everything Why

More information

Step 1: Open Xcode and select Create a new Xcode Project from the Welcome to Xcode menu.

Step 1: Open Xcode and select Create a new Xcode Project from the Welcome to Xcode menu. In this tutorial we are going to build a simple calculator using buttons that are all linked together using the same method. We will also add our own method to the source code to create some additional

More information

View Concepts. iphone Application Programming Lecture 4: User Interface Design. SDK provide many types of Views to show your content

View Concepts. iphone Application Programming Lecture 4: User Interface Design. SDK provide many types of Views to show your content View Concepts iphone Application Programming Lecture 4: User Interface Design SDK provide many types of Views to show your content At run-time Views are organized as a tree Chat Wacharamanotham Media Computing

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

src2/section2.0/section2/main.m // main.m // Students7 // David J. Malan // Harvard University // // Demonstrates mutable arrays.

src2/section2.0/section2/main.m // main.m // Students7 // David J. Malan // Harvard University // // Demonstrates mutable arrays. src2/section0/section2/main.m 1 1 1 1 2 2 2 2 2 2 2 2 2 30. 3 3 3 3 3 3 3 3 3 40. 4 4 4 4 main.m Students7 David J. Malan Harvard University malan@harvard.edu Demonstrates mutable arrays. #import

More information

Multitasking and Background Execution

Multitasking and Background Execution Multitasking and Background Execution Fall, 2012 Prof. Massimiliano "Max" Pala pala@nyu.edu Introduction Spawning Threads and Tasks Background Execution User hits 'home' button the app is sent in the background

More information

ITP 342 Mobile App Dev. Delegates

ITP 342 Mobile App Dev. Delegates ITP 342 Mobile App Dev Delegates Protocol A protocol is a declaration of a list of methods Classes that conform to the protocol implement those methods A protocol can declare two kinds of methods: required

More information

Naviga&on and Tab Bar Controllers and Table View

Naviga&on and Tab Bar Controllers and Table View Naviga&on and Tab Bar Controllers and Table View UINaviga)onController Stack of view controllers Naviga)on bar How It Fits Together Top view controller s view Top view controller s )tle Previous view controller

More information

View Concepts. iphone Application Programming Lecture 4: User Interface Design. SDK provide many types of Views to show your content

View Concepts. iphone Application Programming Lecture 4: User Interface Design. SDK provide many types of Views to show your content View Concepts iphone Application Programming Lecture 4: User Interface Design SDK provide many types of Views to show your content At run-time Views are organized as a tree Chat Wacharamanotham Media Computing

More information

epicurious Anatomy of an ios app Robert Tolar Haining June 25, 2010 ConvergeSE

epicurious Anatomy of an ios app Robert Tolar Haining June 25, 2010 ConvergeSE epicurious Anatomy of an ios app Robert Tolar Haining June 25, 2010 ConvergeSE + = Prototype iphone ipad Why iphone apps Simplicity Control Speed Revenue Epicurious Defined as a Recipe Utility Cookbook

More information

Social Pinboard: ios(swift) Application

Social Pinboard: ios(swift) Application Social Pinboard: ios(swift) Application Document Version 1.0.1 Date: 15 th May, 2015 2 [SOCIAL PINBOARD: APP DOCUMENTATION] Important Notes:... 5 AppDelegate Class Reference... 6 Tasks... 6 Instance Methods...

More information

News- ipad: ios(swift) Application

News- ipad: ios(swift) Application News- ipad: ios(swift) Application Document Version 1.0.1 Date: 9 th Nov, 2014 2 [NEWS- IPAD: APP DOCUMENTATION] Important Notes:... 6 AppDelegate Class Reference... 7 Tasks... 7 Instance Methods... 7

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

Xcode 4 Cookbook. Steven F. Daniel. Chapter No. 2 "User Interfaces Creating the UI"

Xcode 4 Cookbook. Steven F. Daniel. Chapter No. 2 User Interfaces Creating the UI Xcode 4 Cookbook Steven F. Daniel Chapter No. 2 "User Interfaces Creating the UI" In this package, you will find: A Biography of the author of the book A preview chapter from the book, Chapter NO.2 "User

More information

Praktikum Entwicklung von Mediensystemen mit

Praktikum Entwicklung von Mediensystemen mit Praktikum Entwicklung von Mediensystemen mit Wintersemester 2013/2014 Christian Weiß, Dr. Alexander De Luca Today Table View Navigation Controller Passing Data Between Scenes Assignment 2 2 Navigation-based

More information

App. Chapter 19 App. App (ViewController) App. Single View Application Single View Application View. (View Controller)

App. Chapter 19 App. App (ViewController) App. Single View Application Single View Application View. (View Controller) Chapter 19 App App (ViewController) App 19.1 App App Single View Application Single View Application View Controller View Controller Label Button Button (View Controller) 2 View Controller Utility Area

More information

SAMPLE CHAPTER. Brendan G. Lim Martin Conte Mac Donell MANNING

SAMPLE CHAPTER. Brendan G. Lim Martin Conte Mac Donell MANNING SAMPLE CHAPTER Brendan G. Lim Martin Conte Mac Donell MANNING ios 7 in Action by Brendan G. Lim Martin Conte Mac Donell Chapter 2 Copyright 2014 Manning Publications brief contents PART 1 BASICS AND NECESSITIES...1

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

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

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

src7-malan/c/array/array/main.c // main.c // Array // David J. Malan // Harvard University // // Demonstrates arrays. 11.

src7-malan/c/array/array/main.c // main.c // Array // David J. Malan // Harvard University // // Demonstrates arrays. 11. src7-malan/c/array/array/main.c 1 1 1 1 2 2 2 2 2 2 2 2 2 30. 3 3 3 main.c Array David J. Malan Harvard University malan@harvard.edu Demonstrates arrays. #include int main(int argc, const char

More information

MVC and Interface Builder IAP 2010

MVC and Interface Builder IAP 2010 MVC and Interface Builder IAP 2010 iphonedev.csail.mit.edu edward benson / eob@csail.mit.edu Information-Driven Applications Application Flow UIApplication Main NIB Initialized UIAppDelegate - (void)applicationdidfinishlaunching:(uiapplication

More information

Embed ios SDK in to a fitness app

Embed ios SDK in to a fitness app Embed ios SDK in to a fitness app Objective: To embed smart messaging in to an existing ios app for fitness Implementation: 1. Add TeamchatSDK.framework to your project. 2. Add TeamchatSDK.framework to

More information

Types of Views. View category Purpose Examples of views. Display a particular type of content, such as an image or text.

Types of Views. View category Purpose Examples of views. Display a particular type of content, such as an image or text. ios UI Components Sisoft Technologies Pvt Ltd SRC E7, Shipra Riviera Bazar, Gyan Khand-3, Indirapuram, Ghaziabad Website: www.sisoft.in Email:info@sisoft.in Phone: +91-9999-283-283 Types of Views View

More information

lecture 10 UI/UX and Programmatic Design cs : spring 2018

lecture 10 UI/UX and Programmatic Design cs : spring 2018 lecture 10 UI/UX and Programmatic Design cs198-001 : spring 2018 1 Announcements custom app progress form due before lab (~1 minute) will be released after lecture only 2 labs left (both very important)

More information

Mobile Application Programing: ios. Messaging

Mobile Application Programing: ios. Messaging Mobile Application Programing: ios Messaging Application Model View Controller (MVC) Application Controller User Action Update View Notify Update Model Messaging Controller User Action Update Notify Update

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

UI Design and Storyboarding

UI Design and Storyboarding UI Design and Storyboarding Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder Mobile Application Development in ios 1 Outline Model-View-Controller

More information

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

iphone App Basics iphone and ipod touch Development Fall 2009 Lecture 5 iphone App Basics iphone and ipod touch Development Fall 2009 Lecture 5 Questions? Announcements Assignment #1 due this evening by 11:59pm Remember, if you wish to use a free late you must email me before

More information

Acollada ios Charting Components

Acollada ios Charting Components Acollada ios Charting Components Acollada ios Charting Components... 1 LineChartView... 3 Description... 3 Screenshot... 3 Protocols to be implemented... 3 Customizing the LineChartView aspect... 4 How

More information

let w = UIWindow(frame: UIScreen.mainScreen().bounds)

let w = UIWindow(frame: UIScreen.mainScreen().bounds) PART I Views The things that appear in your app s interface are, ultimately, views. A view is a unit of your app that knows how to draw itself. A view also knows how to sense that the user has touched

More information

Mobile Applications Development. Swift, Cocoa and Xcode

Mobile Applications Development. Swift, Cocoa and Xcode Mobile Applications Development Swift, Cocoa and Xcode Swift programming language Swift is the programming language for ios, macos, watchos, and tvos app development First version in 2014 Current version

More information

Coding Conventions Objective-C coding conventions and styling Jens Willy Johannsen

Coding Conventions Objective-C coding conventions and styling Jens Willy Johannsen Coding Conventions Objective-C coding conventions and styling 22-06-2012 Jens Willy Johannsen jens@greenerpastures.dk Greener Pastures Change log... 4 Revision 3 (2012-06-22)... 4 Revision 2... 4 Comments...

More information

Views. A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space

Views. A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space Views A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space Draws and handles events in that rectangle Hierarchical A view has only one superview - (UIView *)superview

More information

ReactiveCocoa. Marc Prud'hommeaux Ottawa CocoaHeads February 13th, 2014

ReactiveCocoa. Marc Prud'hommeaux Ottawa CocoaHeads February 13th, 2014 ReactiveCocoa Marc Prud'hommeaux Ottawa CocoaHeads February 13th, 2014 Introduction ReactiveCocoa Functional Reactive Programming Open-source library by Josh Abernathy & Justin Spahr-Summers

More information

Praktikum Entwicklung von Mediensystemen mit ios

Praktikum Entwicklung von Mediensystemen mit ios Praktikum Entwicklung von Mediensystemen mit ios WS 2011 Prof. Dr. Michael Rohs michael.rohs@ifi.lmu.de MHCI Lab, LMU München Today Storyboards Automatic Reference Counting Animations Exercise 3 2 Timeline

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

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

From Hello World to Finished App. raywenderlich.com

From Hello World to Finished App. raywenderlich.com From Hello World to Finished App Why Learn ios? - Strong demand - Motivating - App Store - It s fun! What s This All About? - One Day Crash Course - For beginners & intermediates - Making apps with UIKit

More information

A Mad Libs app that you will navigate through 3 UIViewControllers to add text that will be shown in a story on the fourth UIViewController.

A Mad Libs app that you will navigate through 3 UIViewControllers to add text that will be shown in a story on the fourth UIViewController. WordPlay App: A Mad Libs app that you will navigate through 3 UIViewControllers to add text that will be shown in a story on the fourth UIViewController. Create a new project Create a new Xcode project

More information

Mobile Application Programming. Controls

Mobile Application Programming. Controls Mobile Application Programming Controls Views UIView instances and subclasses Form a tree rooted at the window Have a backing store of pixels that are drawn seldomly, then composited to form the full user

More information

ios SDK Documentation February 8 By Midtrans

ios SDK Documentation February 8 By Midtrans ios SDK Documentation February 8 By Midtrans 1 Table Of Contents Table Of Contents 2 Getting Started 3 Transaction flow 3 Supported Payment Methods 4 Security Aspects 4 Prerequisites 5 ios SDK 6 Installation

More information

AVAudioRecorder & System Sound Services

AVAudioRecorder & System Sound Services AVAudioRecorder & System Sound Services Dept. of Multimedia Science, Sookmyung Women s University. prof. JongWoo Lee Index AVAudioRecorder? - (AudioRecorder) System Sound Service? - (SysSound) AVAudioRecorder

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

Life Cycle. Chapter Explore the Game Application. Understanding the Views in a Game

Life Cycle. Chapter Explore the Game Application. Understanding the Views in a Game 3 Chapter Explore the Game Application Life Cycle There is more to a game than just the fun parts. Almost all of the games on the market, and definitely the big titles, involve multiple views and a reasonably

More information

Monday, 1 November The ios System

Monday, 1 November The ios System The ios System System Overview System Overview System Overview System Overview System Overview System Overview Foundation Classes (Useful) Foundation Framework Value and collection classes User defaults

More information

Development Guide. BlackBerry Dynamics SDK for ios. Version 3.2

Development Guide. BlackBerry Dynamics SDK for ios. Version 3.2 Development Guide BlackBerry Dynamics SDK for ios Version 3.2 Published: 2017-08-15 SWD-20170815161826656 Contents About this guide... 6 Technical training from BlackBerry...6 Contacting support for app

More information

COMP327 Mobile Computing Session: Lecture Set 1a - Swift Introduction and the Foundation Framework Part 2

COMP327 Mobile Computing Session: Lecture Set 1a - Swift Introduction and the Foundation Framework Part 2 COMP327 Mobile Computing Session: 2018-2019 Lecture Set 1a - Swift Introduction and the Foundation Framework Part 2 73 Other Swift Guard Already seen that for optionals it may be necessary to test that

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

A Vertical Slider for iphone

A Vertical Slider for iphone A Vertical Slider for iphone The UISlider control offers a way to continuously get values from the user within a range of set values. In the Interface Builder library of controls, there is only a horizontal

More information

Notifications. Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder

Notifications. Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder Notifications Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder Mobile Application Development in ios 1 Outline Alerts Internal notifications Local

More information

CS193p Spring 2010 Monday, April 12, 2010

CS193p Spring 2010 Monday, April 12, 2010 CS193p Spring 2010 Announcements Axess! Make sure your grading option matches what you were approved for Sonali s Office Hours Changed Friday 11am to 1pm Thursday 10am to noon Gates B26B Any questions

More information

InterfaceBuilder and user interfaces

InterfaceBuilder and user interfaces ES3 Lab 2 InterfaceBuilder and user interfaces This lab InterfaceBuilder Creating components Linking them to your code Adding buttons, labels, sliders UITableView Creating a tableview Customizing cells

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

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

View Controller Lifecycle

View Controller Lifecycle View Controller Lifecycle View Controllers have a Lifecycle A sequence of messages is sent to them as they progress through it Why does this matter? You very commonly override these methods to do certain

More information

Media and Gaming Accessibility

Media and Gaming Accessibility Session System Frameworks #WWDC17 Media and Gaming Accessibility 217 Greg Hughes, Software Engineering Manager Charlotte Hill, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or public

More information

ITP 342 Advanced Mobile App Dev. Core Data

ITP 342 Advanced Mobile App Dev. Core Data ITP 342 Advanced Mobile App Dev Core Data Persistent Data NSUser Defaults Typically used to save app preferences Property List (plist) in Documents Directory Data is in a dictionary or an array Coders

More information

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

Stanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011 Developing Applications for ios Today UI Element of the Week UIToolbar ipad Split View Popover Universal (iphone + ipad) Application Demo Friday Section AVFoundation framework - Capturing and manipulating

More information

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

Stanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011 Developing Applications for ios Views A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space Draws and handles events in that rectangle Hierarchical A view has only one

More information

Objective-C ICT/7421ICTNathan. René Hexel. School of Information and Communication Technology Griffith University.

Objective-C ICT/7421ICTNathan. René Hexel. School of Information and Communication Technology Griffith University. Objective-C 2.0 2501ICT/7421ICTNathan René Hexel School of Information and Communication Technology Griffith University Semester 1, 2012 Outline Fast Enumeration and Properties 1 Fast Enumeration and Properties

More information

Today s Topics. Views Drawing Text & Images Animation

Today s Topics. Views Drawing Text & Images Animation Today s Topics Views Drawing Text & Images Animation 4 Views 5 View Fundamentals Rectangular area on screen Draws content Handles events Subclass of UIResponder (event handling class) Views arranged hierarchically

More information

MVC & Onwards. CS 442: Mobile App Development Michael Saelee

MVC & Onwards. CS 442: Mobile App Development Michael Saelee MVC & Onwards CS 442: Mobile App Development Michael Saelee Agenda - Recap: view-controller communication - Delegation as a general pattern - Observer pattern - Controller responsibilities & MVC - Multiple

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

Stanford CS193p. Developing Applications for iphone 4, ipod Touch, & ipad Fall Stanford CS193p Fall 2010

Stanford CS193p. Developing Applications for iphone 4, ipod Touch, & ipad Fall Stanford CS193p Fall 2010 Developing Applications for iphone 4, ipod Touch, & ipad Today One last Objective-C topic: Protocols Using protocols to define/implement/use a data source and/or delegate Views UIView and UIWindow classes

More information

Building Faster in Xcode

Building Faster in Xcode #WWDC18 Building Faster in Xcode Session 408 David Owens, Xcode Engineer Jordan Rose, Swift Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Computer Science 251. iphone Application Development. Autorotation, Popover Controllers, Modal Controllers

Computer Science 251. iphone Application Development. Autorotation, Popover Controllers, Modal Controllers Computer Science 251 iphone Application Development Autorotation, Popover Controllers, Modal Controllers Two Types of Orientation Device: physically upside down, rotated left, on its back, etc. Can be

More information

User Experience: Windows & Views

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

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

Praktikum Entwicklung von Mediensystemen mit

Praktikum Entwicklung von Mediensystemen mit Praktikum Entwicklung von Mediensystemen mit Sommersemester 2013 Fabius Steinberger, Dr. Alexander De Luca Honors Degree in Technology Management at the Center for Digital Technology and Management (Barerstr.

More information

ReportPlus Embedded. ReportPlus Embedded - ios SDK Guide 1.0

ReportPlus Embedded. ReportPlus Embedded - ios SDK Guide 1.0 ReportPlus Embedded ios SDK Guide ReportPlus Embedded - ios SDK Guide 1.0 Disclaimer THE INFORMATION CONTAINED IN THIS DOCUMENT IS PROVIDED AS IS WITHOUT ANY EXPRESS REPRESENTATIONS OF WARRANTIES. IN ADDITION,

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

Tables. Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder

Tables. Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder Tables Mobile Application Development in ios School of EECS Washington State University Instructor: Larry Holder Mobile Application Development in ios 1 Outline Table View Controller Table View Table Cells

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

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

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

COMP327 Mobile Computing. Lecture Set 9 - Model, View, Controller

COMP327 Mobile Computing. Lecture Set 9 - Model, View, Controller COMP327 Mobile Computing Lecture Set 9 - Model, View, Controller 1 In this Lecture Set Anatomy of an Application Model View Controller Interface Builder and Nibs View Classes Views Drawing Text and Images

More information

UICollectionView. NSCoder Milwaukee. 2 April John Psuik. Tuesday, April 2, 13

UICollectionView. NSCoder Milwaukee. 2 April John Psuik. Tuesday, April 2, 13 UICollectionView NSCoder Milwaukee 2 April 2013 John Psuik 1 UICollectionView New to ios 6 Layouts determine placement of items (flowlayout and custom layout) UITableView concepts, but you can do so much

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

ITP 342 Mobile App Dev. Locations and Maps

ITP 342 Mobile App Dev. Locations and Maps ITP 342 Mobile App Dev Locations and Maps Locations and Maps Every ios device has the ability to determine where in the world it is Create a live interactive map showing any locations you like, including

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

ptg

ptg ios UICollectionView: The Complete Guide Second Edition Addison-Wesley Mobile Programming Series Visit informit.com/mobile for a complete list of available publications. The Addison-Wesley Mobile Programming

More information