File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,15 @@ Drag files in "Classes" folder into your project.
23
23
![ set the delegate] ( https://raw.githubusercontent.com/seedante/SDECollectionViewAlbumTransition/PinchPopTransition/Config2.png )
24
24
25
25
26
- - At the last, add one line code in your UICollectionView's delegate:
27
- - 最后要做的一件事是,在下面的方法中添加一行代码 :
26
+ - At the last, add the follow codes in your UICollectionView's delegate:
27
+ - 最后要做的一件事是,在下面的方法中添加几行行代码 :
28
28
29
29
override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
30
30
self.selectedIndexPath = indexPath
31
+ self.collectionView?.allowsSelection = false //disable interaction to prevent the issue of double tap on cell
31
32
...
33
+ self.navigationController?.pushViewController(toVC, animated: true)
34
+ self.collectionView?.allowsSelection = true //enable again after push.
32
35
}
33
36
34
37
** Now the collectionView supports to pinch to pop.**
You can’t perform that action at this time.
0 commit comments