Skip to content

Instantly share code, notes, and snippets.

@gregtemp
Created March 8, 2013 22:26
Show Gist options
  • Save gregtemp/5120424 to your computer and use it in GitHub Desktop.
Save gregtemp/5120424 to your computer and use it in GitHub Desktop.
swipe gesture question
//
// C4WorkSpace.m
// Examples
//
// Created by Greg Debicki.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
C4Shape *s;
}
-(void)setup {
s = [C4Shape ellipse:CGRectMake(0, 0, 100, 100)];
s.center = self.canvas.center;
[s addGesture:SWIPELEFT name:@"swipeLeft" action:@"leftSwipe"];
[self.canvas addShape:s];
}
-(void)leftSwipe {
s.fillColor = C4RED;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment