Acollada ios Charting Components
|
|
- Lynne Harrell
- 6 years ago
- Views:
Transcription
1 Acollada ios Charting Components
2 Acollada ios Charting Components... 1 LineChartView... 3 Description... 3 Screenshot... 3 Protocols to be implemented... 3 Customizing the LineChartView aspect... 4 How to provide data to LineChartView (Example)... 4 TimeChartView... 6 Description... 6 Screenshot... 6 Protocols to be implemented... 6 Customizing the TimeChartView aspect... 7 How to provide data to TimeChartView (Example)... 7 PieChartView... 9 Description... 9 Screenshot... 9 Protocols to be implemented... 9 How to provide data to PieChartView (Example) How to receive PieChartView events DataGridView Description Screenshot Protocols to be implemented Customize DataGridView aspect How to read data from DataGridView How to provide data to DataGridView (Example)... 12
3 LineChartView Description A LineChartView control allows you to sketch plot/bar charts just by implementing a simple data source protocol. The chart view control uses the MVC pattern and it needs a data source object. Screenshot Protocols to be LineChartDataSource <NSObject> -(LineChartType) linecharttype: (LineChartView *) view; -(NSString *) linecharttitle: (LineChartView *) view; -(int) linechartnumberofcharts: (LineChartView *) view; -(int) linechartnumberofpoints: (LineChartView *) view; -(float) linecharthorizontaldivisions: (LineChartView *) view; -(float) linechartverticaldivisions: (LineChartView *) view; -(float) linechart: (LineChartView *) view valueforxpointatindex: (int) index Chart: (int) chart; -(float) linechart: (LineChartView *) view valueforypointatindex: (int) index Chart: (int) chart; -(NSString *) linechart: (LineChartView *) view labelforxpointatindex: (int) index Chart: (int) chart; -(NSString *) linechart: (LineChartView *) view labelforypointatindex: (int) index Chart: (int)
4 Customizing the LineChartView aspect You can use the following public properties to set certain aspect options: //The font used to display (nonatomic, retain) NSString *fontname; //The font size for (nonatomic, assign) float fontsizetitle; //The font size for other (nonatomic, assign) float fontsizechart; //Text text (nonatomic, retain) UIColor *textcolor; //The chart should be (nonatomic, assign) bool chartbaselinezero; //Left chart (nonatomic, assign) float plotoffsethorizontalleft; //Right chart (nonatomic, assign) float plotoffsethorizontalright; //Top chart (nonatomic, assign) float plotoffsetverticaltop; //Bottom chart (nonatomic, assign) float plotoffsetverticalbottom; How to provide data to LineChartView (Example) #pragma mark - LineChartDataSource -(NSString *) linecharttitle: (LineChartView *) view { return view == chart" chart"; -(LineChartType) linecharttype:(linechartview *)view { return view == firstchart? LINECHART_PLOT : LINECHART_BAR; -(int) linechartnumberofcharts: (LineChartView *) view { return 4; -(int) linechartnumberofpoints: (LineChartView *) view { return 36; -(float) linecharthorizontaldivisions: (LineChartView *) view { return 36; -(float) linechartverticaldivisions: (LineChartView *) view { return 6;
5 -(float) linechart: (LineChartView *) view valueforxpointatindex: (int) index Chart: (int) chart { return index; -(float) linechart: (LineChartView *) view valueforypointatindex: (int) index Chart: (int) chart { return sin([utilities deg2rad: index * 10 + chart * 30]); -(NSString *) linechart: (LineChartView *) view labelforxpointatindex: (int) index Chart: (int) chart { return [NSString index]; -(NSString *) linechart: (LineChartView *) view labelforypointatindex: (int) index Chart: (int) chart { return [NSString [self linechart: nil valueforypointatindex:index Chart: chart]];
6 TimeChartView Description A TimeChartView control allows you to sketch plot charts along with milestone pins just by implementing a simple data source protocol. The timechartview control uses the MVC pattern and it needs a data source object. Screenshot Protocols to be mark TimeChartDataSource <NSObject> -(NSString *) timecharttitle: (TimeChartView *) view; -(float) timechartverticaldivisions: (TimeChartView *) view; -(int) timechartnumberofcharts: (TimeChartView *) view; -(int) timechartnumberofmilestones: (TimeChartView *) view; -(int) timechart: (TimeChartView *) view numberofpointsforchartatindex: (int) index; -(NSDate *) timechart: (TimeChartView *) view dateforpointatindex: (int) index Chart: (int) chart;
7 -(float) timechart: (TimeChartView *) view valueforpointatindex: (int) index Chart: (int) chart; -(TimeChartMilestone *) timechart: (TimeChartView *) view milestoneatindex: (int) Customizing the TimeChartView aspect You can use the following public properties to set certain aspect options: //The font used to display (nonatomic, retain) NSString *fontname; //The font size for (nonatomic, assign) float fontsizetitle; //The font size for other (nonatomic, assign) float fontsizechart; //Text text (nonatomic, retain) UIColor *textcolor; How to provide data to TimeChartView (Example) #pragma mark - TimeChartDelegate -(NSString *) timecharttitle: (TimeChartView *) view { is the title"; -(float) timechartverticaldivisions: (TimeChartView *) view { return 4; -(int) timechartnumberofcharts: (TimeChartView *) view { return 1; -(int) timechartnumberofmilestones: (TimeChartView *) view { return 5; -(int) timechart: (TimeChartView *) view numberofpointsforchartatindex: (int) index { return 20; -(NSDate *) timechart: (TimeChartView *) view dateforpointatindex: (int) index Chart: (int) chart { //Calculate date int now = [[NSDate date] timeintervalsince1970]; int week = 60 * 60 * 24 * 7; NSDate *date = [NSDate datewithtimeintervalsince1970: now + index * week]; NSLog(@"Point Index: %i Date: %@", index, date); return date;
8 -(float) timechart: (TimeChartView *) view valueforpointatindex: (int) index Chart: (int) chart { return index; -(TimeChartMilestone *) timechart: (TimeChartView *) view milestoneatindex: (int) index { //Calculate date int now = [[NSDate date] timeintervalsince1970]; int week = 60 * 60 * 24 * 7; NSDate *date = [NSDate datewithtimeintervalsince1970: now + index * 3 * week]; NSLog(@"Milestone Index: %i Date: %@", index, date); TimeChartMilestone *milestone = [[[TimeChartMilestone alloc] init] autorelease]; milestone.showdate = date; milestone.caption = [NSString index]; milestone.description = [NSString %i", index]; milestone.state = TIMECHART_MILESTONE_DELAYED; milestone.milestoneid = index; return milestone;
9 PieChartView Description A PieChartView control allows you to display pie data just by implementing a simple data source protocol. The piechartview control uses the MVC pattern and it needs a data source and (optional) a delegate object. Screenshot Protocols to be PieChartDataSource <NSObject> -(UILabel *) piechartlabelforselectedslice: (PieChartView *) view; -(int) piechartnumberofslices: (PieChartView *) view; -(float) piecharttotalvalue: (PieChartView *) view; -(float) piechart: (PieChartView *) view valueforsliceindex: (int) index; -(NSString *) piechart: (PieChartView *) view labelforsliceindex: PieChartDelegate <NSObject> -(void) piechart: (PieChartView *) view didselectslice: (PieChartWheelSlice *)
10 How to provide data to PieChartView (Example) #pragma mark - PieChartDataSource -(UILabel *) piechartlabelforselectedslice:(piechartview *)view { return nil; -(int) piechartnumberofslices:(piechartview *)view { return view == self.pie1? 3 : 6; -(float) piecharttotalvalue:(piechartview *)view { return 100; -(float) piechart:(piechartview *)view valueforsliceindex:(int)index { return [self piecharttotalvalue: view] / [self piechartnumberofslices: view]; -(NSString *) piechart:(piechartview *)view labelforsliceindex:(int)index { return [NSString [self piechart: view valueforsliceindex: index]]; How to receive PieChartView events #pragma mark - PieChartDelegate -(void) piechart: (PieChartView *) view didselectslice: (PieChartWheelSlice *) pcvs { if (view == self.pie1) self.label1.text = [NSString %i = %@", pcvs.index, pcvs.label]; else if (view == self.pie2) self.label2.text = [NSString %i = %@", pcvs.index, pcvs.label];
11 DataGridView Description A UITableView based control that allows you to display views (UILabels, UIImageViews, etc) in grid like form just by implementing a simple data source. The grid view control uses the MVC pattern and it needs a data source and (optional) a delegate object. Screenshot Protocols to be DataGridDataSource <NSObject> -(DataGridHeaderType) datagridheadertype: (DataGridView *) view; -(int) datagridnumberofrows: (DataGridView *) view; -(int) datagridnumberofcolumns: (DataGridView *) view; -(int) datagridrowheight: (DataGridView *) view; -(UIView *) datagrid: (DataGridView *) view cellforrow: (int) row column: (int) column; -(UIView *) datagrid: (DataGridView *) view cellforheadercolumn: DataGridDelegate <NSObject> -(void) datagrid: (DataGridView *) view didselectrow: (int) row; -(void) datagrid: (DataGridView *) view sortbycolumn: (int)
12 Customize DataGridView aspect You can use the following public properties to set certain aspect options: //Custom image for header (nonatomic, retain) UIImage *customheaderimage; //Custom color for row (nonatomic, retain) UIColor *oddrowcolor; //Custom color for row (nonatomic, retain) UIColor *evenrowcolor; How to read data from (nonatomic, readonly) int selectedindex; How to provide data to DataGridView (Example) #pragma mark DataGridDataSource -(DataGridHeaderType) datagridheadertype:(datagridview *)view { return DATAGRID_HEADER_TYPE_NORMAL; -(int) datagridnumberofcolumns:(datagridview *)view { return 6; -(int) datagridnumberofrows:(datagridview *)view { return 30; -(int) datagridrowheight:(datagridview *)view { return 30; -(UIView *) datagrid:(datagridview *)view cellforheadercolumn:(int)column { UILabel *newlabel = [[[UILabel alloc] init] autorelease]; newlabel.text = [NSString %i", column]; newlabel.font = [UIFont boldsystemfontofsize: 16]; newlabel.textcolor = [UIColor whitecolor]; return newlabel; -(UIView *) datagrid:(datagridview *)view cellforrow:(int)row column:(int)column { UILabel *newlabel = [[[UILabel alloc] init] autorelease]; newlabel.text = [NSString %i x %i", row, column]; newlabel.font = [UIFont systemfontofsize: 16];
13 newlabel.textcolor = [UIColor whitecolor]; return newlabel;
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 informationObjective-C Primer. iphone Programmer s Association. Lorenzo Swank September 10, 2008
Objective-C Primer iphone Programmer s Association Lorenzo Swank September 10, 2008 Disclaimer Content was blatantly and unapologetically stolen from the WWDC 2007 Fundamentals of Cocoa session, as well
More informationOVERVIEW. 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 informationStanford 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 informationCS193P - Lecture 8. iphone Application Development. Scroll Views & Table Views
CS193P - Lecture 8 iphone Application Development Scroll Views & Table Views Announcements Presence 1 due tomorrow (4/28)! Questions? Presence 2 due next Tuesday (5/5) Announcements Enrolled students who
More informationPraktikum Entwicklung von Mediensystemen mit ios
Praktikum Entwicklung von Mediensystemen mit ios SS 2011 Michael Rohs michael.rohs@ifi.lmu.de MHCI Lab, LMU München Milestones 26.5. Project definition, brainstorming, main functions, persona 9.6. (week
More informationMobile Application Programming. Objective-C Classes
Mobile Application Programming Objective-C Classes Custom Classes @interface Car : NSObject #import Car.h + (int) viper; - (id) initwithmodel:(int)m; @implementation Car Point position; float velocity;
More informationIPHONE DEVELOPMENT. Getting Started with the iphone SDK
IPHONE DEVELOPMENT Getting Started with the iphone SDK OBJECTIVE-C The Big Picture STRICT SUPERSET OF C The Objective C Language Any C stuff applies Standard libs are here (time, sqrt etc) The C Language
More informationApple Development Technology Workshops
Apple Development Technology Workshops Workshop 10 Table Views Building iphone Apps. Pt 2 Fall 2008 Hafez Rouzati Fall 2008 Zach Pousman Last Week UIViewControllers Organizing Content & Building iphone
More informationITP 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 informationITP 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 informationCS193p 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 informationStanford 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 informationStanford CS193p. Developing Applications for ios. Winter CS193p! Winter 2015
Stanford CS193p Developing Applications for ios Today Objective-C Compatibility Bridging Property List NSUserDefaults Demo: var program in CalculatorBrain Views Custom Drawing Demo FaceView Bridging Objective-C
More informationStanford CS193p. Developing Applications for ios. Spring Stanford CS193p. Spring 2012
Developing Applications for ios Foundation Framework NSObject Base class for pretty much every object in the ios SDK Implements introspection methods, etc. - (NSString *)description is a useful method
More informationMobile Application Programming. Memory Management
Mobile Application Programming Memory Management Memory Management Ownership Model Memory Management in Objective-C is based on an ownership model. Objects may have many owners. Actions that result in
More informationPorting Objective-C to Swift. Richard Ekle
Porting Objective-C to Swift Richard Ekle rick@ekle.org Why do we need this? 1.2 million apps in the ios App Store http://www.statista.com/statistics/276623/numberof-apps-available-in-leading-app-stores/
More informationIntegrating 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 informationStanford CS193p. Developing Applications for ios. Winter CS193p. Winter 2017
Stanford Developing Applications for ios Today Views Custom Drawing Demo FaceView Views A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space For drawing And for handling
More informationStanford CS193p. Developing Applications for ios. Spring CS193p. Spring 2016
Stanford Developing Applications for ios Today Views Custom Drawing Demo FaceView Views A view (i.e. UIView subclass) represents a rectangular area Defines a coordinate space For drawing And for handling
More informationCS193E Lecture #3 Categories and Protocols Cocoa Memory Management
CS193E Lecture #3 Categories and Protocols Cocoa Memory Management Winter 2008, Dempsey/Marcos 1 Today s Topics Questions from Assignment 1A or 1B? Categories Protocols Cocoa Memory Management Object life
More informationViews. 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 informationReview (Basic Objective-C)
Classes Header.h (public) versus Implementation.m (private) @interface MyClass : MySuperclass... @end (only in header file) @interface MyClass()... @end (only in implementation file) @implementation...
More informationIntro 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 informationios: Objective-C Primer
ios: Objective-C Primer Jp LaFond Jp.LaFond+e76@gmail.com TF, CS76 Announcements n-puzzle feedback this week (if not already returned) ios Setup project released Android Student Choice project due Tonight
More informationUICollectionView. 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 informationCS 47. Beginning iphone Application Development
CS 47 Beginning iphone Application Development Introductions Who, why, which? Shameless Plug: LoudTap Wifi Access (If it works..) SSID: Stanford Username/password: csp47guest Expectations This is a programming
More informationToday s Topics. Scroll views Table views. UITableViewController Table view cells. Displaying data Controlling appearance & behavior
Today s Topics Scroll views Table views Displaying data Controlling appearance & behavior UITableViewController Table view cells Scroll Views UIScrollView For displaying more content than can fit on the
More informationReview. iphone Application Programming Lecture 2: Objective-C, Cocoa. History. Objective-C. Device restrictions. Interaction paradigm changes
Review iphone Application Programming Lecture 2: Objective-C, Cocoa Device restrictions Gero Herkenrath Media Computing Group RWTH Aachen University Winter Semester 2013/2014 http://hci.rwth-aachen.de/iphone
More informationObject-Oriented Programming with Objective-C. Lecture 2
Object-Oriented Programming with Objective-C Lecture 2 Objective-C A Little History Originally designed in the 1980s as a fusion of Smalltalk and C Popularized by NeXTSTEP in 1988 (hence the ubiquitous
More informationAVAudioPlayer. 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 informationAbout MSDOSX. Lecture 0
About MSDOSX Lecture 0 Goal: make an app of your own design for the Mac or iphone The Plan Lectures + Labs for several weeks Project proposals (about halfway through the semester) Work on project Present
More informationAnnouncement. 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 informationGeneric Programming with Protocol in Swift. ios
Generic Programming with Protocol in Swift ios Generic Programming with Protocol in Swift ios func swapint(inout a: Int, inout _ b: Int) { let tmp = a a = b b = tmp var someint = 1 var anotherint = 5
More informationStanford CS193p. Developing Applications for iphone 4, ipod Touch, & ipad Fall Stanford CS193p Fall 2010
Developing Applications for iphone 4, ipod Touch, & ipad Today More Core Data What does the code for the custom NSManagedObject subclasses generated by Xcode look like? Querying for (fetching) objects
More informationWidget 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 informationCOPYRIGHTED 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 informationObjective-C Part 2 (ECS189H) Ken Joy Serban Porumbescu
Objective-C Part 2 (ECS189H) Ken Joy joy@cs.ucdavis.edu Serban Porumbescu porumbes@cs.ucdavis.edu Today Objective-C Memory Management Properties Categories and Protocols Delegates Objective-C Memory Management
More informationObjective-C. Stanford CS193p Fall 2013
New language to learn! Strict superset of C Adds syntax for classes, methods, etc. A few things to think differently about (e.g. properties, dynamic binding) Most important concept to understand today:
More informationCOMP327 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 informationStanford CS193p. Developing Applications for ios. Fall CS193p. Fall
Stanford Developing Applications for ios Today Miscellaneous Error Handling Any Other Interesting Classes Views Custom Drawing Demo: Draw a Playing Card enum Thrown Errors In Swift, methods can throw errors
More informationWhat s New in MapKit. App Frameworks #WWDC17. Fredrik Olsson
Session App Frameworks #WWDC17 What s New in MapKit 237 Fredrik Olsson 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. MKMapView.mapType.standard
More informationObjective-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 informationMacOS X Cocoa Programming for Vision Scientist --- #1
MacOS X Cocoa Programming for Vision Scientist --- #1 (by Izumi Ohzawa, 2005-06-16) 1. Best desktop OS with ease of use and excellent programming environment. 2. OS Darwin BSD Unix Open Source. (Unix 3.
More informationTypes 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 informationlectures/2/src2/nib1/nib1/appdelegate.h // AppDelegate.h // Nib1 // David J. Malan // Harvard University //
lectures/2/src2/nib1/nib1/appdelegate.h 1 1 1 1 1 1 1 1 1 2 AppDelegate.h Nib1 David J. Malan Harvard University malan@harvard.edu Demonstrates a Single View Application implemented with a nib, plus IBAction
More informationIPHONE. Development Jump Start. phil nash levelofindirection.com
IPHONE Development Jump Start phil nash levelofindirection.com Who? been in a professional developer for the last 18 years - mostly windows - c++, c#, Java, Python etc - then, Aug 2008, decided to write
More informationDesigning 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 informationStanford CS193p. Developing Applications for ios. Fall CS193p. Fall
Stanford Developing Applications for ios Today Drag and Drop Transferring information around within and between apps. EmojiArt Demo Drag and drop an image to get our EmojiArt masterpieces started. UITableView
More informationMobile Application Development
Mobile Application Development Lecture 13 Introduction to ObjectiveC Part II 2013/2014 Parma Università degli Studi di Parma Lecture Summary Object creation Memory management Automatic Reference Counting
More informationView Hierarchy - UIWindow
Views and Drawing Views View Fundamentals Rectangular area on screen Draws content Handles events Subclass of UIResponder (event handling class) Views arranged hierarchically every view has one superview
More informationCollections & Memory Management. Lecture 2
Collections & Memory Management Lecture 2 Demo: Accessing Documentation Collections NSArray a list of objects in order [array objectatindex:0] [array objectatindex:3] Counting starts at zero, not one NSSet
More informationReview. iphone Application Programming Lecture 2: Objective-C, Cocoa. History. Objective-C. Device restrictions. Interaction paradigm changes
Review iphone Application Programming Lecture 2: Objective-C, Cocoa Device restrictions Gero Herkenrath Media Computing Group RWTH Aachen University Winter Semester 2013/2014 http://hci.rwth-aachen.de/iphone
More informationMonday, 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 informationDesign Phase. Create a class Person. Determine the superclass. NSObject (in this case)
Design Phase Create a class Person Determine the superclass NSObject (in this case) 8 Design Phase Create a class Person Determine the superclass NSObject (in this case) What properties should it have?
More informationWhere to Find Specific Information
The Mobile Connector library is a component that you include into your XCode project and allows you to connect to a Live Guide server to initiate chats. It allows you to connect to a campaign, check its
More informationCOSC$4355/6355$ $Introduction$to$Ubiquitous$Computing$ Exercise$3$ September!17,!2015!
COSC4355/6355 IntroductiontoUbiquitousComputing Exercise3 September17,2015 Objective Inthisexercise,youwilllearnhowtowriteunittestsforyourapplicationandalsohowtouse NSUserDefaults.WewillalsoimplementObjectiveCCcategories*welearntlastweek.
More informationObjective-C and COCOA Applications
Objective-C and COCOA Applications Fall, 2012 Prof. Massimiliano "Max" Pala pala@nyu.edu Overview X-Code IDE Basics Objective-C Classes Methods Invocations Important Types Memory Management Protocols Exceptions
More informationToday 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 informationCS193p Spring 2010 Thursday, April 29, 2010
CS193p Spring 2010 Announcements You should have received an e-mail by now If you received e-mail approving enrollment, but are not in Axess, do it! If you have any questions, please ask via e-mail or
More informationCustom Drawing & Animation. CS 442: Mobile App Development Michael Saelee
Custom Drawing & Animation CS 442: Mobile App Development Michael Saelee 1 Frameworks - UIKit - Core Graphics / Quartz - Core Animation - OpenGL ES 2 UIKit OpenGL ES Core Graphics Core Animation
More informationPraktikum 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 informationCollections. Fall, Prof. Massimiliano "Max" Pala
Collections Fall, 2012 Prof. Massimiliano "Max" Pala pala@nyu.edu Overview Arrays Copy and Deep Copy Sets Dictionaries Examples Arrays Two Classes NSArray and NSMutableArray (subclass of NSArray) int main(int
More informationView 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 informationStanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011
Developing Applications for ios Today Core Location Finding out where the device is MapKit Showing the location of things on a map Demo MapKit Core Location Framework for managing location and heading
More informationDetailed Design Specification
Department of Computer Science and Engineering the University of Texas at Arlington Detailed Design Specification BehindtheCurtain Enterprises Project Team Members: Kyle Burgess Kyle Crumpton Austen Herbst
More informationEsri Developer Summit in Europe ArcGIS Runtime for ios
Esri Developer Summit in Europe ArcGIS Runtime for ios Al Pascual / Nick Furness ArcGIS Web & Mobile APIs Web APIs Flex JavaScript Silverlight REST Mobile APIs ArcGIS Server ArcGIS Runtime SDK for ios
More informationMobile Application Programming. Messaging and Delegation
Mobile Application Programming Messaging and Delegation Color Chooser Color Chooser MFColorChooserView UIControl or UIView MFColorChooserWheelView UIControl MFColorChooserValueSliderView UIControl MFColorChooserAlphaSliderView
More informationCreate an App that will drop PushPins onto a map based on addresses that the user inputs.
Overview Create an App that will drop PushPins onto a map based on addresses that the user inputs. Part 1: Introduction to MKMapKit Part 2: Introduction to PushPins Part 3: Use Google s API to lookup an
More informationCS193P - 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 informationios Mobile Development
ios Mobile Development Today UITextView Scrollable, editable/selectable view of a mutable attributed string. View Controller Lifecycle Finding out what s happening as a VC is created, hooked up to the
More informationsrc3/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 informationStanford CS193p. Developing Applications for iphone 4, ipod Touch, & ipad Fall Stanford CS193p Fall 2010
Developing Applications for iphone 4, ipod Touch, & ipad Today Core Location Framework for specifying locations on the planet MapKit Graphical toolkit for displaying locations on the planet Core Location
More informationCS193E Lecture 7. Document-based Applications NSTableView Key-Value Coding
CS193E Lecture 7 Document-based Applications NSTableView Key-Value Coding Agenda Questions? Review: delegates, MVC Document-based apps Table views Key Value Coding Model, View, Controller Controller Model
More informationITP 342 Mobile App Dev. Code
ITP 342 Mobile App Dev Code Comments Variables Arithmetic operators Format specifiers if - else Relational operators Logical operators Constants Outline 2 Comments For a single line comment, use // The
More informationDeveloping 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 informationStanford 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 informationXcode 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 informationCorrections 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 informationWhy 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 informationDeveloping Applications for ios
Developing Applications for ios Lecture 7: View Controller Lifecycle and UIKit Radu Ionescu raducu.ionescu@gmail.com Faculty of Mathematics and Computer Science University of Bucharest Content View Controller
More informationGetting Started with ArcGIS Runtime SDK for ios. Nick Furness / Al Pascual
Getting Started with ArcGIS Runtime SDK for ios Nick Furness / Al Pascual ArcGIS Runtime Family of SDKs for multiple platforms - Consistent capabilities Native to the platform - For building great apps
More informationApple introduced MapKit with ios, maps were based on Google.
History: Apple introduced MapKit with ios, maps were based on Google. With ios 6.0, Apple provided its own mapping service, which lacked some quality, especially level-of-detail. With ios 7 Apple opened
More informationMobile Application Development
Mobile Application Development Lecture 12 Introduction to ObjectiveC 2013/2014 Parma Università degli Studi di Parma Lecture Summary ObjectiveC language basics Classes and objects Methods Instance variables
More informationLife 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 informationConcurrency. CS 442: Mobile App Development Michael Saelee
Concurrency CS 442: Mobile App Development Michael Saelee note: ios devices are now (mostly) multi-core; i.e., concurrency may allow for real performance gains! but the more common incentive
More informationStanford CS193p. Developing Applications for ios. Fall CS193p. Fall
Stanford Developing Applications for ios Today Mostly more Swift but some other stuff too Quick demo of mutating protocols String NSAttributedString Closures (and functions as types in general) Data Structures
More informationCore Animation. Building Animated UI s. Bill Dudney. Gala Factory Software LLC. Bill Dudney Core Animation: Building Animated UI s Slide 1
Core Animation Building Animated UI s Bill Dudney Gala Factory Software LLC Bill Dudney Core Animation: Building Animated UI s Slide 1 Objective-C Dynamic Object Oriented C Based Smalltalk Roots Bill Dudney
More informationMac OS X and ios operating systems. Lecture 2 Objective-C. Tomasz Idzi
Lecture 2 Objective-C Contact me @ tomasz.idzi@eti.pg.gda.pl Agenda Object-Oriented Programming Defining Classes Working with Objects Demo Summary Object-Oriented Programming Object-Oriented Programming
More informationMobile 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 informationios Development Lecture 1 Introduction to Objective-C Ing. Simone Cirani
ios Development Lecture 1 Introduction to ObjectiveC Ing. Simone Cirani email: simone.cirani@unipr.it http://www.tlc.unipr.it/cirani Simone Cirani, Ph.D. Corso IFTS Cisita ios Development 2014 Parma Università
More informationNSObject. - (NSString *)description Provides us with a string description of the object
FoundationFramework NSObject - (NSString *)description Provides us with a string description of the object NSString - (NSString *)stringbyappendingstring:(nsstring *)string Creates a new string by adding
More informationNaviga&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 informationDeveloping Applications for ios
Developing Applications for ios Lecture 8: idevice Capabilities Radu Ionescu raducu.ionescu@gmail.com Faculty of Mathematics and Computer Science University of Bucharest Content Core Location: GPS + Compass
More informationMVC 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 informationAVAudioRecorder & 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 informationTo use Xcode s Continuous Integration service with this Xcode beta, you need OS X with OS X Server 4.0.
Xcode Release Notes About Xcode 6.3 beta Supported Configurations Xcode 6.3 requires a Mac running OS X 10.10. Xcode 6.3 includes SDKs for ios 8.3 and OS X versions 10.9 and 10.10. To develop apps targeting
More informationView 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 informationIPhone Application of Carleton University. Carleton University Computer Science Honors Project Report
IPhone Application of Carleton University Carleton University Computer Science Honors Project Report Student Name: Yang Cai Student Number: 100309906 Project Supervisor: Dr. Dwight Deugo Date: Dec. 13,
More informationDeveloping Applications for ios
Developing Applications for ios Lecture 4: Views, Autorotation and Gestures Radu Ionescu raducu.ionescu@gmail.com Faculty of Mathematics and Computer Science University of Bucharest Content Views Drawing
More information