简体   繁体   English

Calendar Kal:如何动态刷新表格视图?

[英]Calendar Kal : how to refresh the tableview dynamically?

Hi everyone i am developping a tab bar application where one of the tabs is the Calendar from Kal library (http://github.com/klazuka/Kal). 大家好,我正在开发一个选项卡栏应用程序,其中的一个选项卡是Kal库中的日历(http://github.com/klazuka/Kal)。

I use CoreData as the DataSource for the Kal. 我将CoreData用作Kal的数据源。 It works perfectly but the table view below the Cal is never "refreshing". 它工作正常,但Cal下方的表格视图从未“刷新”。

I mean, the table view is initialized with the events between the first day in month, and the last day in month. 我的意思是,表视图被初始化为月份中第一天到月份中最后一天之间的事件。

But, i want the table view the list of events "dynamically" changed. 但是,我希望表视图“动态”更改事件列表。

Example: 例:

I have created two events : one at january 4th, one at january 8th. 我创建了两个事件:一个在1月4日,一个在1月8日。

The tableview is always showing the two events and no take care of the day selected in month. tableview始终显示两个事件,并且不会照顾月份中选择的日期。 I mean, even if the day selected is January, 22nd, the two events are still displayed. 我的意思是,即使选择的日期是1月22日,这两个事件仍会显示。

How can i load the calendar with all the events of the month and the tableview only with the events of the day ? 我如何才能将日历包含当月的所有事件,并将表视图仅包含当日的事件?

Thanks in advance, 提前致谢,

Regards. 问候。

要重新加载已插入的数据:

[self.tableView reloadData];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM