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

我想用switch组件实现FSCalendar的农历显示与否的即时调控,请教? #158

Closed
donjixote opened this issue Dec 7, 2015 · 2 comments

Comments

@donjixote
Copy link

你好~WenChao,麻烦请教:

MultipleSelectionViewController.m页面中,用UISwitch组件即时控制农历状态:

_lunar = [self.mySwitch isOn];

现在问题是:如何在改变**_lunar值之后,让页面的日历view立刻刷新,就像tableViewreloadData**一样?

或者如何开关后立刻调用这个方法:

- (NSString *)calendar:(FSCalendar *)calendar subtitleForDate:(NSDate *)date

@WenchaoD
Copy link
Owner

WenchaoD commented Dec 7, 2015

你好,在FullscreenExample中有相同的使用案例,在右上角点击Lunar实现展示农历。

@donjixote
Copy link
Author

原来FSCalendar也用reloadData方法,我的问题解决了,谢谢!

[_calendar reloadData];

@WenchaoD WenchaoD closed this as completed Dec 7, 2015
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

3 participants
@WenchaoD @donjixote and others