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

Horizontal scrolling #54

Closed
flowbe opened this issue Jul 28, 2014 · 3 comments
Closed

Horizontal scrolling #54

flowbe opened this issue Jul 28, 2014 · 3 comments

Comments

@flowbe
Copy link

flowbe commented Jul 28, 2014

Hello,

I would like to enable horizontal scrolling anywhere in my view to change selected index of the HMSegmentedControl. Is it possible ?

Thank you

PS: Sorry I'm not english

@HeshamMegid
Copy link
Owner

I'm not sure I understand what you're saying. Do you mean horizontal scrolling on the segmented control or on another view?

@flowbe
Copy link
Author

flowbe commented Aug 14, 2014

I mean, I have a segmented control and a table view and I would like to scroll on the table view to change the selected index of the segmented control

@HeshamMegid
Copy link
Owner

I can't help you without seeing some of your code, but I would imagine you need to implement a delegate method of UIScrollView and calculate, according to the current scroll offset, which segment should be selected, then change the selected index accordingly.

Anyway, this is a usage question that is not directly related to this control. I suggest that you ask your questions on StackOverflow. You'll probably get better help there.

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