0

I am using Kal Calendar, and I need to give users the ability to insert a row, that's a whole other story.

Kal Calendar is applied by Assigning its class to a view controller, and it generates the View.

So, I decided to make an insert bar, where a user can click, and get sent to another view controller, where he can insert a value.

But for that, I need to add a bar, so I added Kal inside a container of the main view controller, so I could add the bar via storyboard.

http://imageshack.us/photo/my-images/838/zahm.png/

So, now I need to get the selected date, over to the "Insert" view controller, when the user clicks on the + button.

The issue is that I cannot seem to pass the value, I tried a few differnet methods, and I'm getting null.

Inside the Kal ViewController, the Selected date is printed here, and its fired on ViewDidLoad, so it's guaranteed to be set.

- (void) calendarMonthView:(TKCalendarMonthView*)monthView didSelectDate:(NSDate*)date{
NSLog(@"Date Selected: %@",date);

    self.dateSelected = date; // i set it for the property here

    [self.tableView reloadData];
}

So, I tried to do it by creating an instance of the insert view, in Kal calendar, and setting the date there, but I then found out that another instance would be used if I segued via storyboard.

Any suggestions on what to do? Maybe set it up in a whole different way .. ?

4

1 に答える 1