Created
March 8, 2013 22:26
-
-
Save gregtemp/5120424 to your computer and use it in GitHub Desktop.
swipe gesture question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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