Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. func scrollViewDidScroll(_ scrollView: UIScrollView) {
  2. let offset = tableView.contentOffset.y
  3. if offset > 200{
  4. print("enable")
  5. containerCell.userPhotosCollectionView.isScrollEnabled = true
  6. }else{
  7. print("disable")
  8. containerCell.userPhotosCollectionView.isScrollEnabled = false;
  9. }
  10. }
  11.  
  12. func scrollViewDidScroll(_ scrollView: UIScrollView) {
  13. let offset = userPhotosCollectionView.contentOffset.y
  14. if offset <= 0{
  15. userPhotosCollectionView.isScrollEnabled = false
  16. }else{
  17. userPhotosCollectionView.isScrollEnabled = true;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement