Developer/iOS

[iOS] UISwipeGestureRecognizer 등록하는 법

블로blow 2011. 6. 7. 09:43
728x90

UISwipeGestureRecognizer *swipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeLeftAction:)];

swipeLeft.direction = UISwipeGestureRecognizerDirectionLeft;

swipeLeft.numberOfTouchesRequired = 1;

swipeLeft.delegate = self;

[self.view addGestureRecognizer:swipeLeft];

728x90