Skip to content

Commit 661c9df

Browse files
committed
Update README.md
1 parent 117eb8d commit 661c9df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ Drag files in "Classes" folder into your project.
1919
![set the delegate](https://raw.githubusercontent.com/seedante/SDECollectionViewAlbumTransition/PinchPopTransition/Config2.png)
2020

2121

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:
2323

2424
override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
2525
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
2630
...
2731
}
2832

0 commit comments

Comments
 (0)