我使用的是MBCalendar工具包框架。并成功添加到我的项目中,但问题是月份和日期不能显示模拟器。在这周和今年的节目中只有一场顶级酒吧秀。我附上了我的输出快照,请找到这个,并显示以下。我想成功地在UI中显示日历。怎么可能呢?请帮帮忙。
#import "ViewController.h"
#import "CalendarKit/CalendarKit.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
CKCalendarView *calendar = [CKCalendarView new];
[calendar setDelegate:self];
[calendar setDataSource:self];
[[self view] addSubview:calendar];
}

发布于 2016-07-16 15:57:28
跟随我的脚步:
步骤1:删除所有与MBCalendar相关的实现。
步骤2:在工程中包含CKDemoViewController.h & CKDemoViewController.m文件。
步骤3:将视图设计类设置为CKDemoViewController。
检查一些文件:https://github.com/BhadreshKathiriya/MBCalendar
- (IBAction)btnClick:(id)sender {
[self presentViewController:[[CKDemoViewController alloc] init] animated:YES completion:nil];
//Or
[self.navigationController pushViewController:[[CKDemoViewController alloc] init] animated:YES];
}https://stackoverflow.com/questions/38408557
复制相似问题