Sounds, Images, and Text FA 172 Intro to Mobile App Development.

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

Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
CNIT 132 – Week 9 Multimedia. Working with Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each.
HTML: HyperText Markup Language Hello World Welcome to the world!
Introduction to Objective-C and Xcode (Part 1) FA 175 Intro to Mobile App Development.
Making a sound When we fire a bullet, we will play a sound The AVFoundation framework enables us to add sounds to our app.
Anatomy of an iPhone Application Content taken from book: “iPhone SDK Development” by Bill Dudney and Chris Adamson.
View Controllers (second part) Content taken from book: “iPhone SDK Development” by Bill Dudney and Chris Adamson.
Powerpoint Demonstration Capabilities of Microsoft Powerpoint.
1 Flash and Animation Presented by : Behzad Sajed Khosrowshahi.
Building a Deployment The following screens demonstrate how to: 1. Create a new OpenHRE™ tailor-made deployment using a remote (sample) deployment Standard.
Unity 3D game IDE 1.  Unity is a multi-platform, integrated IDE for scripting games, and working with 3D virtual worlds  Including:  Game engine ▪
Deployment Management The following screens demonstrate how to: 1. Access and view deployments 2. Create a new local deployment 3. Create and modify a.
Template v4 September 27, Copyright © Infor. All Rights Reserved. 1 Time Track Payroll Schedule Configuration Development Team.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Sprite Animation CSE 391 Fall 2012 Tony Scarlatos.
Simple Game Animation – iPhone Programming Exercise 3 CSE 391 Fall 2012 Tony Scarlatos.
December 10th Inservice Presenter: Linda Lopresti 9-10 English Department (K112) Contact Info: twitter:
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
Web Technologies Website Development Trade & Industrial Education
@2011 Mihail L. Sichitiu1 Android Introduction Platform Overview.
Introduction to Objective-C and Xcode (Part 2) FA 175 Intro to Mobile App Development.
Introduction to Objective-C and Xcode (Part 3) FA 175 Intro to Mobile App Development.
Module 1 – Introduction to myclasses. 2 myclasses is a Virtual Learning Environment (VLE) which enables teachers to - find - assemble - schedule - use.
Tutorial 5 Making a Document Interactive. XP Objectives Explore the different button states Add a button from the Button library Create a button Learn.
Dreamweaver – Dreamweaver Extras Web Design Section 8-4 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border.
Hyperlinks. Linking pages…Hyperlinks 2 Lecture 8  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page.
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
Website Development with Dreamweaver
Chapter 2 Adding Animation to a Presentation. Applying Animation Animation is a great way to add life to InDesign documents by making objects: – move.
Unit 1 — HTML BASICS Lesson 2 — HTML Organization Techniques.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
CAREER WEB PAGE DESIGN Name. View Rubric for detailed information and grading scale Web Site Criteria.
11 October 2015 MAVIS v “Sneak Preview”. 11 October 2015 Enhancements in the Release  Reference Material  Brief Accessioning View  Template.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
Supplementary Materials on Web Authoring. Insert Anchors & Add Hyperlinks Insert other multimedia elements: Flash animations Video clips & Audio clips.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Tabbed Views UITabBarController. Controller Architecture UITabBarController Controls the first view that the user sees The view controller class (and.
Managing Multiple Views and Segues FA 172 Intro to Mobile App Development.
Other web design features. Flash Flash is a Macromedia Program to create interactive “movies” or interfaces in your website Very cool thing possible Not.
JavaScript - A Web Script Language Fred Durao
View Controllers Content taken from book: “iPhone SDK Development” by Bill Dudney and Chris Adamson.
Introduction to Objective-C and Xcode (Part 5) FA 175 Intro to Mobile App Development.
 Facebook Integration on iOS Phan Thanh Phat Huynh Thanh Van.
Course Summary Xcode & iPhone Simulator
Persistence CS 344 Mobile App Development Robert Muller.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
More Objective-C Details FA 172 Intro to Mobile App Development.
Tutorial 7 Creating Animations. XP Objectives Learn about animation Create a timeline Add AP divs and graphics to a timeline Move and resize animation.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
Folio3 IPhone Training Session 2 Testing App on device Presenter: Imam Raza.
Introduction to Objective-C and Xcode (Part 4) FA 175 Intro to Mobile App Development.
Getting Started with Flash Chapter 1 Understand the Flash workspace Lesson 1.
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 10: Move! Creating Animation 1 Android.
Basic in Photoshop Tools in Photoshop Simple templates design menu in Photoshop different navigation bar image effects Design your portfolio page Design.
WebViews UIWebView. Controller Architecture UITabBarController Controls the first view that the user sees The view controller class (and xib) that manages.
Lec 12 Pickers CS 3800 Introduction to IOS programming Lecture 12 Summer 2011.
Getting Started with CSS
EEC-492/693/793 iPhone Application Development
Flash Demonstration – Unit 5 – ActionScript 3.0
Windows Forms in Visual Studio 2005: An in-depth look at key features
Presentation transcript:

Sounds, Images, and Text FA 172 Intro to Mobile App Development

Agenda Sounds – System Sound Services Images – Image View and the UIImage class Text – Files, parsing, Web access

Sounds Reference: – for-iphone-developers-playing-audio- programmatically for-iphone-developers-playing-audio- programmatically Various ways to play sound, depending on format, length, and whether you want sounds played in the background For this class, we will use System Sound Services via the AudioToolbox library

Setting up and playing sounds Set up – Define sound id SystemSoundId _soundId; – Specify sound file NSString *file = [[NSBundle mainBundle] NSURL *url =[NSURL fileURLWithPath:file]; – Associate with sound id AudioServicesCreateSystemSoundID((CFURLRef) url, &_soundId); Play – Play by indicating sound id AudioServicesPlaySystemSound(_soundId);

Sounds class A Sounds class (Sounds.h, Sounds.m) has been provided that enables sound support – You are welcome to look at the implementation but do not need to as long as you understand how to invoke the methods Class methods: – setSound: associate a sound file to an idNum (int) – play: plays the sound by indicating the idNum Make sure to – Include AudioToolbox library in frameworks (Build Phases, Link Binary with Libraries) – Include sound files in “Supporting Files”

Class methods revisited Take note: the methods of the Sounds class are class methods.h file (interface) contains method declarations with the + prefix When using the class, [Sounds ]; – e.g., [Sounds [Sounds play: 3];

Images Image View – Displays an image or animation (described by several images) – Placed within a UI View of a View Controller Associated image can be assigned either – Through the Xcode environment: through attributes inspector – Or programmatically, by setting properties or calling methods on the UIImageView outlet connection

UIImage Set image of image view by assigning a UIImage object to the view’s image property self.imageView.image = [UIImage Make sure all image files needed are included in the “Supporting Files” area (and added to the project’s target

Animation Set up an NSArray of images representing the images describing the animation Set two properties of the view – animationImages: the NSArray – animationDuration: number representing the duration (in seconds) for one animation cycle Call startAnimating method on the view Call stopAnimating method to stop animation

Animation Example NSArray *images = [NSArray arrayWithObjects: [UIImage [UIImage [UIImage nil]; self.iv.animationImages = images; self.iv.animationDuration = 0.5; [self.iv startAnimating];

Exercise Create a single view project with three buttons and one image view – Set the image of the view to some default image Button 1: changes the image to the another image Button 2: plays a sound Button 3: plays a different sound and then runs an animation The project requires 2 sounds and at least 4 images

Text Demonstrated through a sample project Text files: read/write text (NSString*) from/to files Parsing: from NSString to NSArray Reading data from the web To be posted on the website

Summary Sounds in an app can be played through Systems Sound Services using the AudioToolbox library – Other frameworks are available – A Sounds class enabling sound support has been created for this course to simplify use Images and animation supported through – UIImageView class – UIImage class