MBCalendar工具包框架如何添加在我的项目中 [英] MBCalendar kit framework how to add in my project

查看:159
本文介绍了MBCalendar工具包框架如何添加在我的项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 MBCalendar 工具包框架。并成功添加在我的项目,但问题是月份和日期不能显示模拟器。只有一个顶部栏显示在这个星期和年显示。我附上我的输出快照,请找到这个和显示波纹管。我想在UI中成功日历显示。如何可能请帮助。

I used MBCalendar kit framework. and successfully added in my project, but problem is that months and dates cant show simulator. only one top bar show in this weeks and year show. I attached my output snap shot please find this and show bellow. I want to successfully calendar show in UI. how it possible please help.

#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];

}

推荐答案

按照我的步骤:

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

Step 1: remove you are implement all related to MBCalendar.

步骤2:include CKDemoViewController.h&您的项目中的CKDemoViewController.m文件。

Step 2: include CKDemoViewController.h & CKDemoViewController.m file in your project.

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

Step 3: set your view design class to 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];
 }

这篇关于MBCalendar工具包框架如何添加在我的项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆