Created
June 6, 2014 01:45
-
-
Save mint149/9ec45da0fe7a907a5b37 to your computer and use it in GitHub Desktop.
UIImageViewにUISwipeGestureRecognizerを乗せる時は、UIImageView.userInteractionEnabledをYESにしないといけない。
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
UIImage *hogeImage = [UIImage imageNamed:@"hoge.png"]; | |
UIImageView *hogeView = [[UIImageView alloc] initWithImage:hogeImage]; | |
hogeView.userInteractionEnabled = YES; | |
[hogeView addGestureRecognizer:swipeDownGesture]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment