UIAlertView, UIActionSheet, and Facebook Connection Lecture 4 1.

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

12-CRS-0106 REVISED 8 FEB 2013 PRESENTS vTools Voting: Getting Voter List.
Integrating people, process and technology! Social Media Specialist Making a Difference in Business.
10 February Event Monitoring and Event File Maintenance.
App Inventor Barb Ericson July 3, 2013.
Game Rules Implementation Lecture 5 1. Revisit 2  Lab 4 – Other Input Methods  Touches Basics  Relationship between TouchesBegan, TouchesMoved, and.
Touches Detection and Other Remaining Parts Lecture 3 1.
DeVry University Donelle Vance. GRAB - The Cross Platform iPhone, iPad & Android Phone Sharing Application August 2011.
Works Cardholder Tutorial Initial Login, Transaction Review, & Reports.
Edit the text with your own short phrases. The animation is already done for you; just copy and paste the slide into your existing presentation. RegisterLogin.
App Inventor Barb Ericson Georgia Tech
CAREERSOURCE GC BOARD AND CENTER SETUP FOR USE WITH IPHONE, IPAD, AND SELECT IPODS.
Automation Repository - QTP Tutorials Made Easy The Zero th Step TEST AUTOMATION AND QTP.
Microsoft Outlook Web Application (OWA)
MobeSys Technologies MobeSys – helping you overcome mobile technology challenges.
Welcome to the Virtual Math Teams of the Math Drexel University A Quick Tutorial for Beginners Step 1. First of all, you need to go to this URL.
Tutorial. What is Instagram? Instagram is a free, online photo sharing, video sharing and social networking service that enables users to take pictures.
JLabel, JTextField, JButton and JOptionPane
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Introduction to JavaScript + More on Interactive Forms.
PROGRAMMING IN VISUAL BASIC.NET VISUAL BASIC BUILDING BLOCKS Bilal Munir Mughal 1 Chapter-5.
Java Software Solutions Lewis and Loftus Chapter 10 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Graphical User Interfaces --
Web Programming Assignment #4: Searching & Notification due 12/14/2010 Old Dominion University Department of Computer Science CS 418/518 Fall 2010 Martin.
Lecture 5: Interaction 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 711,  ex 2271 
University of Sunderland COM 220 Lecture Six Slide 1 Building Interactive Forms Applications using Oracle.
Face your Facebook Fears Take control of your profile privacy settings and use Facebook to communicate with students MOACAC Conference, 4/12/11 Presenters:
IOS with Swift Hello world app.
Using Xcode A Beginner’s Tutorial Erin Green. This tutorial will walk you through Xcode, a software development tool for Apple’s iOS applications – We.
Guidelines for ENSCONET partners in the use of the e-forum.
 Facebook Integration on iOS Phan Thanh Phat Huynh Thanh Van.
Object Oriented Programming.  Interface  Event Handling.
Class Builder Tutorial Presented By- Amit Singh & Sylendra Prasad.
Human Resources Management Information System Software Manual NATIONAL HEALTH MISSION, CHHATTISGARH.
STEP BY STEP GUIDE IN HOW TO SETUP A COST CENTER LIST FOR USE IN PULLING ACCOUNTING DETAIL VIA AN EXTRACT, OR TO PRINT DBR REPORTS OF ACCOUNTING INFORMATION.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4: Events Programming with Alice and Java First Edition by John Lewis.
Slide 1   .. Introduction to the. slide 2  ..  The Welcome Screen ( Click here to enter.
Facebook for Beginners One Session Class. What will you learn today? What can you do on Facebook? Creating a profile Privacy Connecting with friends Sending.
1 UI Alert View iPhone/iPad, iOS Development Tutorial.
LHC Gas System Tutorial Remote / Local connection S.Haider.
Meetingangels.com Service Buyer. Front Page 2created by ilancecustomization.com.
UI Tags of Struts2. May 12, 2011 Struts 2.x Tags in detail:- The Struts 2.x tags can be classified under the following categories. i) UI Tags ii) Control.
3 Apps for Primary Teachers to Organize Center Activities iPossibilities Conference – June 10, 2014 Amanda Hanna
Online Testing – Instructions for TAs Mississippi PearsonAccess SATP2 and MST Copyright © 2010 Pearson Education, Inc. or its affiliates.
Introducing Scratch Learning resources for the implementation of the scenario
How to develop a VoIP softphone in C# by using OZEKI VoIP SIP SDK This presentation demonstrates the first steps concerning to how to develop a fully-functional.
Affiliate Menu – Gallery
Schoology at GRMS Schoology is a new communication platform for teachers, students, and parents. We hope this will assist in creating a culture at GRMS.
Employee App - User Guide
Forward your phone calls
WikID installation/training
Computing with C# and the .NET Framework
Introduction to Event-Driven Programming
Handling Exceptions.
How to Troubleshoot Downloading Issue of Norton Antivirus?
Call for How to Set Up AirDrop on Mac and iOS devices?
Chap 7. Building Java Graphical User Interfaces
Graphical User Interfaces -- Introduction
Forward your phone calls
The How to Guide to Using Google Drive
Download OriginMobile
Forward your phone calls
Introduction to TouchDevelop
Figure A Figure B 12/07/2006 Rev B
School Of Diabetes Website
Tonga Institute of Higher Education
PCW-09 Vision: Information Center Approval System
Forward your phone calls
Audio setup and making calls
Schoology at GRMS Schoology is a new communication platform for teachers, students, and parents. We hope this will assist in creating a culture at GRMS.
Presentation transcript:

UIAlertView, UIActionSheet, and Facebook Connection Lecture 4 1

Organization 2  Part 2 – Two Common Controls and Delegate Concept  2.1 UIAlertView  2.2 UIActionSheet  Part 3 – Facebook Connection  3.1 Facebook Role  3.2 iPhone Role

UIAlertView - Introduction 3  A UI component that pops up to catch user immediate attention and respond for some internal status changes  In Tutorial 3 Part 3.3, the following screen is shown when game ends UIAlertView

UIAlertView - Introduction II 4  Note that you must respond by clicking the button before you can do any other action on the screen view. For example,  Situation 1: You can try shaking the device when the UIAlertView is shown up.  Situation 2: You can try shaking the device after you have pressed the button.

Analogy: Windows Alert 5  Windows also has similar function. For example:  When I turn off the system without saving this powerpoint file, the following alert is popped up:

UIAlertView – Multiple Choices 6  Other than catching the user attention, another useful function is to provide choices for the user.  Recall that to activate the UIAlertView:

UIAlertView – Multiple Choices II 7  Note that the “otherButtonTitles” field is nil  To provide more buttons in the UIAlertView, we can put in other string value(s) as parameter(s) of the “otherButtonTitles” field

UIAlertView – Multiple Choices III 8  Now, we know how to create a UIAlertView with two or more buttons.  Quick Questions:  How do we know that which button is clicked if there are multiple buttons?  Delegate Concept

Delegate – Basic Concept 9  When certain events (e.g., press a button in a UIAlertView) occur on a certain kind of UI components (e.g., UIAlertView), the components will call back its delegate to handle the event for it. VolcanoRockEscapingViewController1. Register as delegate VolcanoRockEscapingViewController2. Call back (Please handle this event for me)

Delegate - Requirements 10  Now, we know the role of a delegate. However, to become a “valid” delegate, there are some requirements: 1. The UI component can detect some events on it and allow its delegate to handle it 2. The object has to intentionally register as the delegate of the UI component. 3. The object has to declare and implement the functions to handle the event

Delegate – Registration 11  When did “VolcanoRockEscapingView Controller” register as delegate of the UIAlertView?

Delegate – How to handle the event? 12  How can “VolcanoRockEscapingViewController” handle the event?  For some UI components, the SDK has provided a predefined set of handler function declaration.  The delegate can handle the event by implementing the predefined set of functions  To handle the UIAlertView event, we have to: 1. Declare in “VolcanoRockEscapingViewController.h”that it has implement the function 2. Implement the related function in the “VolcanoRockEscapingViewController.m”

Codes Modification Required 13 In “VolcanoRockEscapingViewController.h” file, we need to declare that this class has implement the function In “VolcanoRockEscapingViewController.m” file, we need to implement the following function :

UIActionSheet - Introduction 14  Similar to that of UIAlertView, it is used to catch the user’s attention, and provide selection choices to users. UIActionSheet

UIActionSheet – Introduction II 15  Unlike that of UIAlertView  UIActionSheet object slides up from bottom, while UIAlertView object is popped up in the center.  UIActionSheet object is more likely to be activated by user, while UIAlertView is more likely to be activated by the change of internal status.  UIActionSheet object is mainly used to provide more choices for the user, while UIAlertView is mainly used to inform the user about the status changes  Please refer to the tutorial sheet for the objective-C codes on activation, detection of button clicked, etc. (Very similar to that of UIAlertView )

Facebook Connection - Introduction I 16  Facebook has provided an open source iPhone Facebook Development Kit for iPhone developers to connect to the user’s facebook account.  Basically, the relationship between iPhone programming and facebook can be summarized as follows: Your iPhone App iPhone Facebook SDK Facebook App Facebook User Account Facebook Role iPhone Role

Facebook Connection - Introduction II 17  iPhone app makes use of the iPhone Facebook Development Kit to connect to a facebook app.  The facebook app can then act on behalf of the iPhone app to access the user’s facebook account information.  The information accessed includes, post feeds, user’s friends information, etc.

Procedures in Making Facebook Connection 18  3.1 Setup a facebook developer account and a facebook app  3.2 Setup the iPhone facebook SDK  3.3 Login facebook through iPhone  3.4 Upload photo with a message Please refer back to the tutorial sheet for the detail descriptions

Challenges (Optional) Different styles of VolcanoRock generation pattern 2. Different difficulty levels 3. Keeping best score 4. Any others?