Giter Club home page Giter Club logo

apr19's Introduction

Thursday, April 12, 2012: up to Flip in the in-class examples, except that we skipped single and double taps. Play with everything and do all the exercises. Write a project named Apr19 and upload it to a GitHub repository named Apr19. The project should detect gestures with a gesture recognizer, and do animation, sound, flipping, and/or other interesting stuff. A long time ago in a galaxy far, far away...

-= What this actually does =-

Flip between two views. Flipping is triggered with double tap gesture.
 
 - The first view: 
	- Contains a bunch of UIImageViews. Each of these UIImageViews have a head image with a transparent background.
	- Touch on the view will move the head to the point Touch. A sound will play.
	- Each head has its own sound.
	- Animation of the movement of the head from where it was to where the user touched will be of the same duration as the sound being played.
	- Can shrink and expand all the heads by using pinch gesture. Will play sound.
	- Rotating the device will rotate the heads. Each head will rotate in its own delay and duration.
 
 - The second view:
	- Can draw lines.
	- First touch will indicate start point of the line. Second touch will indicate end point of the line.


-= Concepts explored =-

	- Retrieve a file path from the resource bundle. [NSBundle mainBundle]
	- Retrieve an array of file paths from the resource bundle.
	- Using AVAudioPlayer to play mp3s.
	- Generating random numbers with arc4random().
	- Generating random CGFoat numbers with a custom function.
	- Animations on touch and gesture events with CGAffineTransform.


-= Concepts to explore =-

	- Using appropriate sound player to play short sound files, look into AudioServicesPlaySystemSound.
	- Simultaneously triggering gesture events by adopting the UIGestureRecognizerDelegate protocol.
	- Preserving previous transform on a View when applying a new one.
	- Using an Enum to interpret device orientation number.
	- Make UIImageView respond to events and gestures.
	- Use a UIViewController for a UIView and implement non display logic in the controller rather than in the view.
	- Simultaneous animations.

apr19's People

Contributors

georgeslabreche avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.