개발에 익숙하지 않습니다. "예상 된 형식"오류에 관한 오류가 있습니다. 두 클래스의 응용 프로그램에서 한 클래스와 다른 클래스의 메서드를 선언했습니다. 클래스 내가 DayButton.h
에서 it.Two 클래스 DayButton.h 및 DDCalenderView.h 를 해결하기 위해 @protocol의 method.How의 도움으로 그 방법을 사용, 난"예상 된 형식"오류를 해결하는 방법
@protocol DayButtonDelegate <NSObject>
-(void)dayButtonPressed:(id)sender;
@end
로 선언 그리고 DDCalenderView.h
에, 나는
@protocol DDCalenderViewDelegate<NSObject>
-(void)dayButtonPressed:(DayButton *)button;
예외 발생 부근 method in DDCalenderView.h
여기에 코드 스 니펫을 게시 할 수 있습니까? – nhahtdh
ok 나는 질문을 편집 할 것이다. 몇 분 – user1464243
이 클래스들로 어떤 행동을 취할 것인가? – Ratnakar