2015-01-04 3 views
0

Tapku 라이브러리를 사용하여 내보기에 캘린더를 추가하고 있습니다. 나는 의미 론적 문제를프로토콜의 메소드가 올바르게 구현되지 않았습니다.

calendarMonthView 무엇입니까 : marksFromDate : TODATE를 내보기 controller.m에 라인

@implementation ViewController 

를 구현하지 '프로토콜'TKCalendarMonthViewDataSource를 '나는 시도

TKCalendarMonthViewDataSource 아래에서 calendarMonthView : marksFromDate : toDate :를 구현하지만 성공적으로 컴파일 한 다음 종료합니다. marksFromDate : TODATE 잘못

이 내가 TKCalendarMonthView.h

@protocol TKCalendarMonthViewDataSource <NSObject> 

- calendarMonthView:marksFromDate:toDate; 


/** A data source that will correspond to marks for the calendar month grid for a particular  month. 
@param monthView The calendar month grid. 
@param startDate The first date shown by the calendar month grid. 
@param lastDate The last date shown by the calendar month grid. 
@return Returns an array of NSNumber objects corresponding the number of days specified in the  start and last day parameters. Each NSNumber variable will give a BOOL value that will be used to  display a dot under the day. 
*/ 


- (NSArray*) calendarMonthView:(TKCalendarMonthView*)monthView marksFromDate:(NSDate*)startDate toDate:(NSDate*)lastDate; 


@end 

에 내가 그것을 고칠 수 또는 calendarMonthView 내 구현이 얼마나 어떤 생각을 그것을 구현하는 시도 내 코드?

감사!

+0

당신은 실제로 구현해야 당신의 viewcontroller.m에 calendarMonthView:marksFromDate:toDate 메소드를 구현 뷰 컨트롤러의 데이터 소스 메서드 - 데이터 소스 역할을하는 클래스 – rmaddy

답변

0

보기 컨트롤러가 데이터 소스 프로토콜을 준수해야합니다 :

viewcontroller.h :

@interface ViewController : UIViewController<TKCalendarMonthViewDataSource> 

.. 그리고이

관련 문제