【发布时间】:2013-02-12 14:20:48
【问题描述】:
我正在尝试将 Tapku 日历添加到我的应用中。我正在使用故事板,我添加了 Tapku 库,导入了必要的文件并添加了 TKCalendarMonthViewDelegate 方法。我正在将日历添加到名为 calendarView 的 UIView。当我运行应用程序时,日历不会出现,只是里面什么都没有的视图。
-(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.
}
谁能帮帮我?
【问题讨论】:
-
我已经使用了那个例子,我正在努力将它添加到我的项目中
-
你TapKu在xcode 5工作了吗
标签: iphone ios calendar storyboard tapku