Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func scrollViewDidScroll(_ scrollView: UIScrollView) {
- let offset = tableView.contentOffset.y
- if offset > 200{
- print("enable")
- containerCell.userPhotosCollectionView.isScrollEnabled = true
- }else{
- print("disable")
- containerCell.userPhotosCollectionView.isScrollEnabled = false;
- }
- }
- func scrollViewDidScroll(_ scrollView: UIScrollView) {
- let offset = userPhotosCollectionView.contentOffset.y
- if offset <= 0{
- userPhotosCollectionView.isScrollEnabled = false
- }else{
- userPhotosCollectionView.isScrollEnabled = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement