File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,14 @@ Drag files in "Classes" folder into your project.
19
19
![ set the delegate] ( https://raw.githubusercontent.com/seedante/SDECollectionViewAlbumTransition/PinchPopTransition/Config2.png )
20
20
21
21
22
- - At the last, add a line code in your UICollectionView's delegate:
22
+ - At the last, add several lines code in your UICollectionView's delegate:
23
23
24
24
override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
25
25
self.selectedIndexPath = indexPath
26
+ let layoutAttributes = self.collectionView!.layoutAttributesForItemAtIndexPath(indexPath)
27
+ let areaRect = self.collectionView!.convertRect(layoutAttributes!.frame, toView: self.collectionView!.superview)
28
+ let toVC = ......
29
+ toVC.coverRectInSuperview = areaRect
26
30
...
27
31
}
28
32
You can’t perform that action at this time.
0 commit comments