Lecture 08

Lecture 08 - CS193p Spring 2010 Wednesday Announcements...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS193p Spring 2010 Wednesday, April 21, 2010 Announcements UDID Deadline Disappeared Wednesday, April 21, 2010 Today’s Topics Big Demo Gesture Recognizers Wednesday, April 21, 2010 UIGestureRecognizer Mechanism for responding to standard gestures Pan, Pinch, Long Press, Rotation, Swipe, Tap The base class is abstract Need to use appropriate concrete subclass to get behavior (more later) Set target/action ... two forms- (void)handleGesture;- (void)handleGesture:(UIGestureRecognizer *)sender; Lots of infrastructure for handling the complex interactions that can occur between gestures Like one canceling the other or when touches “get through” But the vast majority of the time, it’s pretty easy Wednesday, April 21, 2010 UIGestureRecognizer Just create a recognizer and add it to a view using addGestureRecognizer: method on UIView- (void)viewDidLoad { // some instance variable (outlet) named theView contains a view which implements pan: UIGestureRecognizer *pangr = [[UIPanGestureRecognizer alloc]...
View Full Document

This note was uploaded on 02/15/2011 for the course CS 193P taught by Professor Evandoll during the Spring '09 term at Stanford.

Page1 / 10

Lecture 08 - CS193p Spring 2010 Wednesday Announcements...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online