Lec 12 Pickers CS 3800 Introduction to IOS programming Lecture 12 Summer 2011.

Slides:



Advertisements
Similar presentations
Integrating Facebook into iOS Apps 08/25/2011 North Atlanta iOS Developers Meetup Group Presentation.
Advertisements

Table Views UITableView. Overview Table view basics Tables display lists of data Each item in a tables list is a row Tables can have an unlimited number.
Press Esc to Exit ©2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in.
CS 3800 Su 11 Beg. IOS Dev L4 Obj C part 1 CS 3800 Introduction to IOS programming Summer 2011 G. Zimmerman.
Making a sound When we fire a bullet, we will play a sound The AVFoundation framework enables us to add sounds to our app.
Accessible PDF Documents with Adobe Acrobat 8 Sean Keegan Web Accessibility Specialist CSU Summer Accessibility Institute 2007.
Topic R1 – Review for the Midterm Exam. CISC 105 – Review for the Midterm Exam Exam Date & Time and Exam Format The midterm exam will be Tuesday, 3 April.
Topic R3 – Review for the Final Exam. CISC 105 – Review for the Final Exam Exam Date & Time and Exam Format The final exam is 120-minutes, closed- book,
Obtaining MISR Data and Information Jeff Walter Atmospheric Science Data Center April 17, 2009.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Welcome! WebJunction CQ Training - Creating an Event Listing Why & How Welcome.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Tags Pages 63 to 114 in your workbook. Tag Browser Review of the communication chain Polling Driver concepts Tag Browser in detail – Filtering – The tag.
CP104 Introduction to Programming File I/O Lecture 33 __ 1 File Input/Output Text file and binary files File Input/output File input / output functions.
Navigation in iPads splitViewController. Overview Create a Master-Detail application Switch Device Family to iPad Give the project a name and click “Use.
Lec 12 Pickers CS 3800 Introduction to IOS programming Lecture 16 Summer 2011.
1 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Accessing Remote Data 2.4 Importing Text Files.
Introduction to Objective-C and Xcode (Part 5) FA 175 Intro to Mobile App Development.
Sounds, Images, and Text FA 172 Intro to Mobile App Development.
April Nolan Tomboulian Tomboulian.Info Microsoft Office Introduction Introduction to Excel 2010.
Functions: Part 2 of /11/10: Lecture 16 CMSC 104, Section 0101 John Y. Park 1.
Building Forms Microsoft Office Word 2007 Illustrated Complete.
Persistence CS 344 Mobile App Development Robert Muller.
CMSC 2021 CMSC 202 Computer Science II for Majors Spring 2003 Mr. Frey (0101 – 0104) Mr. Raouf (0201 – 0204)
1/25/2016B.Ramamurthy1 Exam3 Review CSE111 B.Ramamurthy.
Lec 5 Obj-C part 2 CS 3800 Introduction to IOS programming Lecture 5 Summer 2011.
Introduction to Objective-C and Xcode (Part 4) FA 175 Intro to Mobile App Development.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
Objective-C: Intro Michelle Alexander COMS E6998 2/4/2013.
Lec 9 MultiViews CS 3800 Introduction to IOS programming Lecture 9 Summer 2011.
Splunk Enterprise Instructor: Summer Partain 3 Day Course.
Chapter 10 Creating a Template for an Online Form Microsoft Word 2013.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
XSEDE ECSS JIRA-Confluence Project Management
CSE 103 Day 20 Jo is out today; I’m Carl
Introduction to programming in java
Creates the file on disk and opens it for writing
First EURAXESS TOPIII training for Portal Administrators
Chapter 7 Text Input/Output Objectives
Microsoft Outlook By: Phuong Nguyen.
Plug-In T7: Problem Solving Using Access 2007
Add your secondary text & subtitle
Beginning of Class (On lined paper)
HOW TO PUT PASSWORD IN WORD, SPREAD SHEET AND DATABASE
Data Validation and Protecting Workbook
Administering a Database System
Topic 3.5 Word Processing Application Microsoft Word.
EEC-492/693/793 iPhone Application Development
EEC-492/693/793 iPhone Application Development
FINAL EXAM INFORMATION
Part A – Doing Your Own Input Validation with Simple VB Tools
Creates the file on disk and opens it for writing
Midterm Review CSE421 B.Ramamurthy 12/27/2018 B.Ramamurthy.
Midterm Review CSE4/521 B.Ramamurthy 1/11/2019 B.Ramamurthy.
EEC-492/693/793 iPhone Application Development
Lecture 16 Oct 30, 02.
Midterm Review CSE4/521 B.Ramamurthy 2/23/2019 B.Ramamurthy.
Midterm Review CSE4/521 B.Ramamurthy 2/23/2019 B.Ramamurthy.
Midterm Review CSE4/521 B.Ramamurthy 4/4/2019 B.Ramamurthy.
Midterm Review CSE421A,B B.Ramamurthy 4/12/2019 B.Ramamurthy.
Midterm Review CSE421 B.Ramamurthy 4/18/2019 B.Ramamurthy.
Midterm Review CSE4/521 B.Ramamurthy 5/6/2019 B.Ramamurthy.
Midterm Review CSE4/521 B.Ramamurthy 5/18/2019 B.Ramamurthy.
Technical Communication
ITEC 202 Operating Systems
Visual Programming week # 14 Review for Final Exam.
Adv. Reports & Dashboard
Basic Reports.
How to Log into your Options Form using Office 365
The Department of Environment and Geography
Presentation transcript:

Lec 12 Pickers CS 3800 Introduction to IOS programming Lecture 12 Summer 2011

Announcments Program 5 due Wednesday Midterm Exam Thursday Project Proposals due… Ch8 TableViews deferred …. Lec 12 Pickers

Topics Pickers UIDatePicker –NSDate class Custom Pickers –Data source –synchronization Plists Lec 12 Pickers

Pickers - 1 What/why? A tab bar picker –example Lec 12 Pickers

Tab 3 Date Picker Ivars? Properties? Outlets? Actions? *note: –Date/Time format Lec 12 Pickers

DatePicker Change datePicker Mode buttonPressed details –Raw date – use description –Formatted date: NSDateFormatter Lec 12 Pickers

NSDateFormatter Formatting dates converting string  dates –setDateStyle –setDateFormat –Examples: setDateStyle:NSDateFormatterShortStyle Lec 12 Pickers

DatePicker Setting the datePicker date - (void) setDate: (NSDate*) date animated:(BOOL)animated Where? Lec 12 Pickers

Tab 4 Custom Picker Ivars? Properties? Outlets? Actions? *note: –Date/Time format Lec 12 Pickers

Tab 4 Custom Picker Terminology: rows, components text or images (views) Lec 12 Pickers

Tab 4 Custom Picker Delegates again –Set in IB UIPickerViewDelegate UIPickerViewDataSource picker will ‘request’ data to be displayed as it is needed from the delegate. Lec 12 Pickers

Custom Picker Data source #1. Static NSArray –Initialized where? Data source methods: - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView -(NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component { return [cityData count]; } Lec 12 Pickers

Tab 4 Custom Picker PickerView Delegate methods: -(NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component Optional: --(void) pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { Lec 12 Pickers

Custom Picker Data source #2 Property lists – app data files Creating a property list. - (void) loadCityDataFromPList { NSBundle *bundle = [NSBundle mainBundle]; NSString *plistPath = [bundle NSArray* cityDataArray = [[NSArray alloc] initWithContentsOfFile:plistPath]; self.cityData = cityDataArray; [cityDataArray release] ;} Called from where? Lec 12 Pickers