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

月与周切换多次,导致异常问题 #295

Closed
liuyihua2015 opened this issue May 18, 2016 · 2 comments
Closed

月与周切换多次,导致异常问题 #295

liuyihua2015 opened this issue May 18, 2016 · 2 comments

Comments

@liuyihua2015
Copy link

你好,在使用你的日历框架时,发现在多次切换月与周之时(真机测试的情况下),在 FSCalendarAnimatorl的类的 - (void)scopeHandleDidUpdate:(FSCalendarScopeHandle )scopeHandle方法中,切换多次会导致 minTranslation 为0的情况,一旦为就是抛出如下异常:
*
* Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 2414 beyond bounds [0 .. 1559]'
是 CGFloat progress = translation/minTranslation,除以0,导致的!把不等于0的情况排除掉,亲测有用!谢谢!

@WenchaoD
Copy link
Owner

多谢提醒,有些疏忽了,回头我看下。

@WenchaoD
Copy link
Owner

Fixed.

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