我正在尝试将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