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

[bug] reloadData wil not reload header title #394

Closed
icefox57 opened this issue Aug 25, 2016 · 2 comments
Closed

[bug] reloadData wil not reload header title #394

icefox57 opened this issue Aug 25, 2016 · 2 comments

Comments

@icefox57
Copy link

[bug] reloadData wil not reload header title

使用 minimumDateForCalendar 和 maximumDateForCalendar 来达到 限制选择日期的功能, 并用 reloadData 来达到刷新 mini 和 max date 的效果.
但是刷新后 顶部的 header 不会随之改变.
具体如下操作
当前是9月, 选择10月 某1日, 选择后代码设置 新的 mini 和 max date是选择日的后5日内 并刷新后
此时由于mini date改变 所以整个列表最上面的数据变成了 10月, 而header title 没有随之改变, 只有在滑动后才会改变.

@icefox57
Copy link
Author

_calendar.appearance.headerTitleFont = [UIFont systemFontOfSize:12]; 另外 无法改变 header 的字体大小, 无论是代码, 还是用interface builder

@WenchaoD
Copy link
Owner

改变字体大小需要先关闭自适应,请详细看注释。
image

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