Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable horizontal scroll? #35

Open
Bruno-Piccinin-RealComm opened this issue Dec 29, 2017 · 2 comments
Open

Disable horizontal scroll? #35

Bruno-Piccinin-RealComm opened this issue Dec 29, 2017 · 2 comments

Comments

@Bruno-Piccinin-RealComm

It is possible to disable horizontal scroll (day scroll) and mantain the vertical scroll (hours scroll) on week view?

@BadChoice
Copy link
Owner

BadChoice commented Dec 29, 2017 via email

@Bruno-Piccinin-RealComm
Copy link
Author

I tried to use

_weekView.collectionView.alwaysBounceHorizontal = NO; _weekView.collectionView.alwaysBounceVertical = YES;

in my setupWeekData (same as the example) but it doesn't work.
I found on internet something like this

UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init]; [flowLayout setScrollDirection:UICollectionViewScrollDirectionVertical];

but I can't find a way to access on UICollectionViewFlowLayout of weekView, but I found only the UICollectionViewLayout with no possibilities to set the scroll direction
_weekView.collectionView.collectionViewLayout

A little help please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants