我正在嘗試將Tapku日曆添加到我的應用程序。我使用故事板,我添加了Tapku庫,導入了必要的文件並添加了TKCalendarMonthViewDelegate方法。我將日曆添加到名爲calendarView的UIView中。當我運行應用程序時,日曆不會出現,只是沒有任何內容的視圖。將Tapku日曆添加到應用程序
-(void)viewDidLoad
{
[super viewDidLoad];
[self.navigationController setNavigationBarHidden:NO animated:YES];
self.navigationItem.hidesBackButton = YES;
calendar = [[TKCalendarMonthView alloc] init];
calendar.delegate = self;
calendar.dataSource = self;
calendar.frame = CGRectMake(0, 0, calendar.frame.size.width, calendar.frame.size.height);
// Ensure this is the last "addSubview" because the calendar must be the top most view layer
[self.view addSubview:calendar];
[calendar reload];
// Do any additional setup after loading the view.
}
任何人都可以幫助我嗎?
http://developinginthedark.com/posts/iphone-tapku-calendar-markers – iPatel 2013-02-12 14:26:24
我已經使用過這個例子,我正努力將其添加到我的項目中 – 2013-02-12 15:39:09
TapKu是否在xcode 5中工作 – 2014-10-16 13:24:09