Calendar Kal : how to refresh the tableview dynamically? - iphone

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).
I use CoreData as the DataSource for the Kal. It works perfectly but the table view below the Cal is never "refreshing".
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.
The tableview is always showing the two events and no take care of the day selected in month.
I mean, even if the day selected is January, 22nd, the two events are still displayed.
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.

To reload the data that's been inserted:
[self.tableView reloadData];

Related

#mui/x-date-pickers week view

is there a way to transform calendarPicker from month view to week view, so calendar would show only one week, not full month, and with left/right arrow buttons we could navigate from one week to another.week view image

tapku initialize sunday as first day

in my calendar project i have a tapku calendar which displays monday on the very left. In America however, Sunday is usually on the left, so tapku has a method
- (id)initWithSunday:(BOOL)sundayFirst
so that can happen. However this method is used in the previous view controller, that controller initializes the tapkuViewController and then segues over. However, I start my project in the tapku view controller. So how do I set Sunday on the left?
Thanks

Table not updating when datasource is updated

I have a tab-Bar Controller + UINavigation Controller app.
In tabs 1,2,3 I have table views that offer the user some items to choose from. Once the user selects the items they get added to a Cart.
Tab 4 is a table that shows the items in Cart.
I noticed that when the user selects items in tabs 1 or 2 or 3 they show ip in the cart tab the forst time its clicked on.
If the user then goes back to tabs 1,2,3 and selects more items, the table in the "Cart" tab does not get updated.
Im not sure why this is the case. I have programmed in the "Cell for Row # IndexPath" method to get data from the Datasource each time this method is called.
Im puzzled. Wondering if there is something obvious that Im missing here?
Thanks for your help
The table only updates its data in two situations.
You're using an 'NSFetchedResultsController' to bridge the gap from your data to the view. This controller automatically updates the view whenever the underlying data changes (and, similarly, automatically updates the data when it receives an add/edit/delete request from the view).
You handle it all manually in your own code, most importantly calling the UITableView's reloadData method after the data in the datasource has changed.
you have to reload the data in the table view friend .
[yourtable reloaddata];
use this where you want to show your data

How can I dynamically populate a UITableView control?

Using UITableView, I can display a list of items using an array in rootViewTabel, how can I display another list in the nextView of the table?
My first view displays a list of months from jan - dec.
On selecting a particular month I want to display the list of festivals for that month in the same table.
What code should I include?
When the app launches use your root view controller to display the list of months. When the user taps on a particular cell, push another view controller which will in turn display the list of festivals for the selected month.
Following this way would be very easy to learn and implement.
Here are a few links that will help you learn and implement it easily.
Easy custom UITableView drawing
iPhone Programming Tutorial – Populating UITableView With An NSArray
So go ahead and code...

Some Calendar with only Day and Month View

In my app, I require a calendar with day view and month view.
Now the problem is that all calendars available are either having only month view or they are having an additional view for list view.
So can you suggest some calendars where in only two views (month view and day view).
Tapku, Open source, it's on github. It has Day and Month, but not List view.