Commit c4e5f5fce178ef3dfe6bbda979cc1302750e738c
1 parent
9e6f883148
Exists in
master
and in
1 other branch
Enable tap gesture again
Showing 2 changed files with 5 additions and 5 deletions Side-by-side Diff
LifeLog/LifeLog/HistoryViewController.m
... | ... | @@ -74,10 +74,10 @@ |
74 | 74 | [self.viewCollectionShare disableSelection]; |
75 | 75 | |
76 | 76 | //add tap gesture for enable tap on gesture on CollectionView in ScrollView |
77 | -// UITapGestureRecognizer *recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(gestureAction:)]; | |
78 | -// [recognizer setNumberOfTapsRequired:1]; | |
79 | -// self.scrollView.userInteractionEnabled = YES; | |
80 | -// [self.scrollView addGestureRecognizer:recognizer]; | |
77 | + UITapGestureRecognizer *recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(gestureAction:)]; | |
78 | + [recognizer setNumberOfTapsRequired:1]; | |
79 | + self.scrollView.userInteractionEnabled = YES; | |
80 | + [self.scrollView addGestureRecognizer:recognizer]; | |
81 | 81 | } |
82 | 82 | |
83 | 83 | - (void)setupChartView { |
LifeLog/LifeLog/HistoryViewController.xib
... | ... | @@ -482,7 +482,7 @@ |
482 | 482 | </constraints> |
483 | 483 | <point key="canvasLocation" x="26.5" y="52.5"/> |
484 | 484 | </view> |
485 | - <swipeGestureRecognizer enabled="NO" cancelsTouchesInView="NO" direction="left" id="Qjg-St-rCc"> | |
485 | + <swipeGestureRecognizer cancelsTouchesInView="NO" direction="left" id="Qjg-St-rCc"> | |
486 | 486 | <connections> |
487 | 487 | <action selector="swipeAction:" destination="-1" id="2Vl-bM-Ta7"/> |
488 | 488 | </connections> |