首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MBCalendar工具包框架如何添加到我的项目中

MBCalendar工具包框架如何添加到我的项目中
EN

Stack Overflow用户
提问于 2016-07-16 14:44:11
回答 1查看 208关注 0票数 2

我使用的是MBCalendar工具包框架。并成功添加到我的项目中,但问题是月份和日期不能显示模拟器。在这周和今年的节目中只有一场顶级酒吧秀。我附上了我的输出快照,请找到这个,并显示以下。我想成功地在UI中显示日历。怎么可能呢?请帮帮忙。

代码语言:javascript
复制
#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];

}

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-07-16 15:57:28

跟随我的脚步:

步骤1:删除所有与MBCalendar相关的实现。

步骤2:在工程中包含CKDemoViewController.h & CKDemoViewController.m文件。

步骤3:将视图设计类设置为CKDemoViewController。

检查一些文件:https://github.com/BhadreshKathiriya/MBCalendar

代码语言:javascript
复制
 - (IBAction)btnClick:(id)sender {
    [self presentViewController:[[CKDemoViewController alloc] init] animated:YES completion:nil];
    //Or
    [self.navigationController pushViewController:[[CKDemoViewController alloc] init] animated:YES];
 }
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38408557

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档