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

How do I deal with such effect? Like the picture #7

Open
xhzengAIB opened this issue Mar 5, 2014 · 6 comments
Open

How do I deal with such effect? Like the picture #7

xhzengAIB opened this issue Mar 5, 2014 · 6 comments
Assignees
Labels

Comments

@xhzengAIB
Copy link

Hi! @kevinkirkup
can you help me?

picture:
snip20140305_1

Jack

@kevinkirkup
Copy link
Owner

Hi @xhzengAIB.
Can you provide a little more information?
And a sample project would be helpful if that's possible.

Does this always happen?

@kevinkirkup
Copy link
Owner

In your View Controller, can you print out the current value?
Looks like printing the value was left off in the example. Use this:

#pragma mark - UIScrollViewDelegate

- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{    
    NSLog(@"scrollViewDidEndDecelerating: %i", _dialView.currentValue);
}

- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
    NSLog(@"scrollViewWillBeginDragging: %i", _dialView.currentValue);
}

The output should look like this in the log:

2014-03-05 20:32:56.969 DialViewExample[9114:70b] scrollViewWillBeginDragging: 0
2014-03-05 20:32:57.069 DialViewExample[9114:70b] starting=247.500000, ending=240.000000
2014-03-05 20:32:58.872 DialViewExample[9114:70b] scrollViewDidEndDecelerating: 15

Can you post the log output?

@xhzengAIB
Copy link
Author

@kevinkirkup
Hi!
I want to take advantage of your library, instead of a angle selector.
this picture screenshots for Instagram App, not my demo, I'm very sorry, my English because I am a Chinese.
Jack

@kevinkirkup
Copy link
Owner

@xhzengAIB
Can you post your question in Chinese and I can try to ask someone at work to translate.

@kevinkirkup kevinkirkup self-assigned this Mar 7, 2014
@xhzengAIB
Copy link
Author

@kevinkirkup
谢谢你的支持,我想要这样的效果:
1、一个能限制在一定范围内角度的刻度盘,比如:-25度到25度,我会利用这些值来改变图片的旋转角度
2、刻度盘不支持快速滚动,我觉得应该是利用的KVO设置了ScrollView的contenoffset,所以每次滑动的距离都是很小,比如滑动了1度。

@hugepuff
Copy link

hugepuff commented Apr 1, 2014

@kevinkirkup
Thanks for your support, I want the effect like this:
1.The dial(ScrollView) can be limited to certain value, such as -25 degree to 25 degree. I want to use those value to change the rotation angle of pictures.
2.The dial didn't support "fast forward". I think you probably use KVO to set contenoffset to the ScrollView. So each swipe will only move one degree, which is too small.

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

No branches or pull requests

3 participants