Last Lecture objective C memory management rules Wrote our first iPhone app a quiz app xib and nib files and interface editor MVC pattern IBOutlet IBAction.

Slides:



Advertisements
Similar presentations
View-Based Application Development Lecture 1 1. Flows of Lecture 1 Before Lab Introduction to the Game to be developed in this workshop Comparison between.
Advertisements

Introduction to HTML & CSS
Introduction to Objective-C and Xcode (Part 1) FA 175 Intro to Mobile App Development.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
1 Chapter 12 Working With Access 2000 on the Internet.
View Controllers (second part) Content taken from book: “iPhone SDK Development” by Bill Dudney and Chris Adamson.
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
AJAX & By – Anupama Sharma. Defining Ajax Ajax isn’t a technology. It’s really several technologies, each flourishing in its own right, coming together.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Chapter 9 Introduction to the Document Object Model (DOM) JavaScript, Third Edition.
Programing App Inventor. Variable Declaration App Inventor: Declare Variables using the “Define Variable As” Block – Find the Blocks Editor (top-left),
© 2006 by IBM 1 How to use Eclipse to Build Rich Internet Applications With PHP and AJAX Phil Berkland IBM Software Group Emerging.
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Written by Liron Blecher
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
NextGen Technology upgrade – Synerizip - Sandeep Kamble.
Pittsburgh Java User Group– Dec Java PureFaces: A JSF Framework Extension.
JavaScript & jQuery the missing manual Chapter 11
Philly.NET Hands-on Labs JAVASCRIPT SERIES. July 9: JavaScript Syntax Visual Studio ◦Projects ◦Editors ◦Debugging ◦Script blocks ◦Minification and bundling.
CSCI 6962: Server-side Design and Programming Introduction to AJAX.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 4-1 of…
Deutsches Elektronen-Synchrotron DESY Helmholtz Association of German Research Centres Hamburg, Germany The European X-Ray Laser Project.
Windows Presentation Foundation Adam Calderon Principal Engineer Interknowlogy LLC
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
LAYOUT CONTROLS. XAML Overview XAML : eXtensible Application Markup Language pronounced (ZAMEL) is a markup language used to design user interfaces XML-based.
IOS with Swift Hello world app.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 7.
Telerik Software Academy ASP.NET Web Forms Telerik Software Academy ASP.NET Web Forms.
Declaratively Producing Data Mash-ups Sudarshan Murthy 1, David Maier 2 1 Applied Research, Wipro Technologies 2 Department of Computer Science, Portland.
1 Chapter 12: Form Builder Objects and Flexible Code.
View Controllers Content taken from book: “iPhone SDK Development” by Bill Dudney and Chris Adamson.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
3.14 Work List IOC Core Channel Access. Changes to IOC Core Online add/delete of record instances Tool to support online add/delete OS independent layer.
Gestures UIGestureRecognizer.
.  A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate.  Taken advantage of Spring’s multi layer injection.
User Interface Objects From Beginning iPhone 4 Development and The iPhone Developer’s Cookbook (Chapter 4)
JQuery JavaScript is a powerful language but it is not always easy to work with. jQuery is a JavaScript library that helps with: – HTML document traversal.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Module 8 Enhancing User Interface Responsiveness.
Web Technologies Lecture 2 HTML and CSS. HTML Hyper Text Markup Language – Describes web documents – Made up of nested HTML markup tags – Tags are the.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
Unit 13 –JQuery Basics Instructor: Brent Presley.
The iOS Platform and SDK. iOS iPhoneiPad Mini iPad.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
Internet Explorer 10 IE9 hardware-accelerated platform CSS 2D Transforms CSS Backgrounds & Borders CSS Color CSS Fonts CSS Media Queries CSS Namespaces.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Integrating Components and Dynamic Text Boxes with the Animated Map– Lesson 101 Integrating Components and Dynamic Text Boxes with the Animated Map Lesson.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
CHAPTER 6 Threads, Handlers, and Programmatic Movement.
Part of the Microsoft.NET Framework 3.0 Tomer Shamam.NET Technologies Expert Sela Group
//liveVirtualacademy2011/ What’s New for ASP.NET 4.5 and Web Development in Visual Studio 11 Developer Preview Γιώργος Καπνιάς MVP, MCT, MCDP, MCDBA, MCTS,
Introduction to Silverlight Development Pavel Yosifovich CTO, Matrix Global; Senior Instructor, Hi-Tech College
Iphone Online Training AcuteSoft: India: , Land Line: +91 (0) USA: , UK : +44.
Java FX: Scene Builder.
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
AJAX.
.NET and .NET Core 7. XAML Pan Wuming 2017.
EEC-492/693/793 iPhone Application Development
CSC 581: Mobile App Development
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
Web Development Using ASP .NET
Presentation transcript:

Last Lecture objective C memory management rules Wrote our first iPhone app a quiz app xib and nib files and interface editor MVC pattern IBOutlet IBAction Connection Inspector then wrote init, showQuestion, and showAnswer

Core Location Framework whereami application classes that enable finding geographical position distanceFilter and desiredAccuracy properties

Delegation locationManager:didUpdateToLocation:f romLocation: sent to “delegate” which we want WhereamiAppDelegate to be

Delegation the design pattern... an OO approach to callbacks allows callback methods to share data a delegate can only be sent messages specified in its protocol for every object that can have a delegate, there is a corresponding protocol

some funcs removed

like “interfaces” in other langs... i.e. no impl protocols for delegations “delegate protocols” can be used to ask things from the delegate or inform of updates can methods... by default required... here all were optional

every object implements respondsToSelector: something like this (above) class has to declare protocols it implements like other langs no warning anymore

memory and delegation delegates are usually controllers delegates never retained retain cycle assign attrib... weak reference

lets display a map of current location

whereami object diagram

Several instances of MKAnnotationView appear as icons on the MKMapView. An MKMapView displays the map and the labels for the recorded locations. A UIActivityIndicatorView indicates that the device is working and not stalled. A UITextField allows the user to input text to label the current location on the map.

#import drag the map view onto UIWindow

all we do is set showsUserLocation property of MKmapview and it will show user’s location

too big the dot on world map want to zoom in when to send a zoom in message instead MKMapView has delegate

lets add an annotation MKAnnotation protocol lets create a new MapPoint class

in xib file set text field’s delegate to be the instance of WhereamiAppDelegate. this means we can implement methods from UITextFieldDelegate

Touch touch events are hallmark of mobile devices lets make a drawing app like brushes

touch events

events added to event queue A UITouch object created and tracked for a finger set of UITouches passed... one per finger only the moving, begining, or ending event passed lets make our app

use IB to set the view to default

Blocks in ios 4.0 change colors based on angle and length

blocks = anonymous methods

colors when you shake

blocks capture variables like anonymous functions in c# inline block objects (values copied) blocks are an alternate to callbacks blocks are used for GCD... kind of like tasks

grand central dispatch dispatch queues pools of threads managed by

threads

calling back on UI thread

lets download an image asynchronously

generate 10k random numbers if needed read 10K random numbrs, sort n display UITableView

dispatch_after dispatches after a delay timers dependencies group of tasks

Where did we start from Where to go from here

started with handling multiple input sources in C++, discovered message loop refactored, understood events, event processing, source, target, event object downloaded VS and c# language and its features examples of OO programming in c#

delegates, events, exception handling, attributes, collections worked with XML docs wpf history and xaml property elements and markup extensions mixing xaml and procedural code

logical and visual trees dependency properties change notifications prop val. inheritance attached properties sizing, positioning, and transforming elements

transforms panels stackpanel, wrappanel, canvas, dockpanel, grid content overflow, clipping, scaling, scrolling events, input events, attached events, touch events (manipulation... high level) commands, persisting and restoring

resources... binary and logical static vs dynamic logical resources data binding, binding object, binding markup extension binding to collection, implicit datacontext datatemplates and value converters customizing collection view... sorting, filtering, grouping, navigating data providers... xml and object data providers

concurrency and threads captured variables synchronization context and tasks continuations task completion source sync vs async

course grained vs fine grained sync async wait keywords in c# 5.0 parallelism cancellation and progress reporting task combinator and task parallel library Parallel.Invoke, For, ForEach concurrent collections

JS history and jQuery library HTML CSS JS client side vs server side dom jQuery selectors and filters changing attributes and elements events and animations ajax... xmlhttprequest, get put load JSON...

mobile development objective C history call syntax and OO concepts properties retain count and memory management xib, nib, iboutlet, ibaction, interface builder

button events and a QA app protocols and delegates location and map kits touch events and blocks GCD and multithreading