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

关于日历maxdate的问题 #339

Closed
dippac opened this issue Jun 20, 2016 · 6 comments
Closed

关于日历maxdate的问题 #339

dippac opened this issue Jun 20, 2016 · 6 comments
Labels

Comments

@dippac
Copy link

dippac commented Jun 20, 2016

不好意思,英文不太好,用中文表达。作者你好,我在对日历初始化的时候发现的问题。关于操作- (NSDate *)maximumDateForCalendar:(FSCalendar *)calendar 这个方法,当未获取到数据的时候默认返回nil,在获取到数据后,重新刷新“reloadData”页面,设置maxdate,会出现下面的问题,maxdate后面的日期不显示,但是会出现空白。我重新设置未获取到数据的时候默认最大日期,在获取到数据后,刷新页面,也是只显示最初设置的日期区间。所以问题总结是日历的只会显示最初的区间,然后第二次刷新,设置maxdate则会只记住最初的区间。请问该如何解决这个问题呢?

你好作者,日历的maxdate是无法动态切换(显示范围)的是吗?

0620_1

@WenchaoD
Copy link
Owner

如果maxdate变小,而恰好又小于当前所停留的月份,那处理起来就有些麻烦了。我再想想。谢谢提醒😄

@dippac
Copy link
Author

dippac commented Jun 21, 2016

我测试过maxdate变大,显示范围只显示到第一次设定的范围,无法拖到超过部分的日期。

@dippac
Copy link
Author

dippac commented Jun 21, 2016

我以前曾经使用 [_collectionView reloadData]; [self setNeedsLayout];在FSCalendar类中可以正常显示,但是会拖出不少其它的bug,所以想问问作者大大有没临时的解决方案?

@yilongchun
Copy link

@dippac 那个不能选的日期 颜色是灰色 你怎么设置的

@dippac
Copy link
Author

dippac commented Jul 11, 2016

@yilongchun 我重新调整过了他自带的颜色选择规则

@WenchaoD
Copy link
Owner

WenchaoD commented Jul 14, 2016

development分支下已修复.

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