開発は初めてです。「ExpectedaType」エラーに関するエラーが発生しました。アプリケーションの2つのクラスで、1つのクラスでメソッドを宣言し、別のクラスで@protocolメソッドを使用してそのメソッドを使用しました。方法それを解決します。2つのクラスDayButton.hとDDCalenderView.hDayButton.h
で、私は次のように宣言しました
@protocol DayButtonDelegate <NSObject>
-(void)dayButtonPressed:(id)sender;
@end
そして、でDDCalenderView.h
、私は次のように書いた
@protocol DDCalenderViewDelegate<NSObject>
-(void)dayButtonPressed:(DayButton *)button;
でvoidメソッドの近くで例外を取得するDDCalenderView.h