Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

DMCircularScrollView with non fixed width view #3

Open
ErwannRobin opened this issue Sep 19, 2012 · 1 comment
Open

DMCircularScrollView with non fixed width view #3

ErwannRobin opened this issue Sep 19, 2012 · 1 comment

Comments

@ErwannRobin
Copy link

Hello,
In my app, I have several view inside a scrollview, but they are not stuck together.
They sometimes leave blank between each other and they sometimes overlap.

I would love to use DMCircularScrollView to be able to loop the scrollview, but I don't know exactly where to look to be able to handle such a feature.

I think that it has something to do with the relayoutPageItems function where you seems to shift all the viewsToLoad by a fixed offset_x.

Do you think it requires to change things elsewhere ?

One more thing : I would also like to disable the paging mode. I found it inside initWithFrame but it works only when I scroll from right to left, not from left to right ; do you have an idea ?

@malcommac
Copy link
Owner

This control uses the concept of paginated UIScrollView with a scrollview inside a parent view and centered horizontally in it; left and right elements are visible because clipToBounds is set to false and I've forwared -hitPoint event to the scrollview.
In order to make a full loop (without pagination) you should play with UIScrollView delegate methods and adjust final position at the end of any scroll animation. It's not complicated but I've not enough time to play with it, so if you want it could be a nice implementation.

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

No branches or pull requests

2 participants