File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,10 @@ 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 several lines code in your UICollectionView's delegate:
22
+ - At the last, add one line 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
30
26
...
31
27
}
32
28
You can’t perform that action at this time.
0 commit comments