是什么原因 - [__ NSArrayM removeAllItems]:使用Kal时无法识别的选择器?

时间:2013-06-21 18:52:55

标签: objective-c kal

我和Kal一起工作了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;

这是否正确错误地退出委托错误?

0 个答案:

没有答案