I have been working with Kal for 3 weeks. I was able to modify the holiday example to use my data and drill down. I am trying to create the simplest working process to build on.
I can display the calendar but when I try to mark dates I get an exception error:
On first starting this process I had a error about the delegate I read that I needed to change from this
*/
@interface KalViewController : UIViewController <KalViewDelegate, KalDataSourceCallbacks>
{
KalLogic *logic;
UITableView *tableView;
id <UITableViewDelegate> delegate;
id <KalDataSource> dataSource;
NSDate *initialDate; // The date that the calendar was initialized with *or* the currently selected date when the view hierarchy was torn down in order to satisfy a low memory warning.
NSDate *selectedDate; // I cache the selected date because when we respond to a memory warning, we cannot rely on the view hierarchy still being alive, and thus we cannot always derive the selected date from KalView's selectedDate property.
}
@property (nonatomic, assign) id<UITableViewDelegate> delegate;
@property (nonatomic, assign) id<KalDataSource> dataSource;
@property (nonatomic, retain, readonly) NSDate *selectedDate;
TO THIS
@interface KalViewController : UIViewController <KalViewDelegate, KalDataSourceCallbacks>
{
KalLogic *logic;
UITableView *tableView;
__weak id <UITableViewDelegate> delegate;
__weak id <KalDataSource> dataSource;
NSDate *initialDate; // The date that the calendar was initialized with *or* the currently selected date when the view hierarchy was torn down in order to satisfy a low memory warning.
NSDate *selectedDate; // I cache the selected date because when we respond to a memory warning, we cannot rely on the view hierarchy still being alive, and thus we cannot always derive the selected date from KalView's selectedDate property.
}
//@property (nonatomic, assign) id<UITableViewDelegate> delegate;
//@property (nonatomic, weak) id <UITableViewDelegate> delegate;
//@property (nonatomic, weak) id <KalDataSource> dataSource;
@property ( weak) id <UITableViewDelegate> delegate;
@property ( weak) id <KalDataSource> dataSource;
@property (nonatomic, retain, readonly) NSDate *selectedDate;
Is this Correct Incorrect way of getting out of the delegate error?