私はカルと3週間働いています。休日の例を変更して、自分のデータを使用してドリルダウンすることができました。私は、構築するための最も単純な作業プロセスを作成しようとしています。
カレンダーを表示できますが、日付をマークしようとすると例外エラーが発生します:
このプロセスを最初に開始したとき、私が読んだデリゲートについて、これから変更する必要があるというエラーがありました
*/
@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;
これに
@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;
これは、デリゲート エラーから抜け出すための正しい間違った方法ですか?