Skip to content

Commit

Permalink
Update ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
noblakit01 committed Jul 21, 2017
1 parent 73250fc commit e483bae
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'PhotoCollectionView', '~> 1.2.0'
pod 'PhotoCollectionView', '~> 1.3.0'
```

Then, run the following command:
Expand Down Expand Up @@ -104,6 +104,21 @@ extension ViewController: PhotoCollectionViewDataSource {
imageCollectionView.dataSource = self
```

### PhotoCollectionViewDelegate

Handle which image selected
```
imageCollectionView.delegate = self
```

```
extension ViewController: PhotoCollectionViewDelegate {
func photoCollectionView(_ photoCollectionView: PhotoCollectionView, didSelectImageAt index: Int) {
print("Press at index \(index)")
}
}
```

## Author

Luan Tran - noblakit01@gmail.com
Expand Down

0 comments on commit e483bae

Please sign in to comment.