Comments (18)
Have you linked against QuartzCore.framework?
from mbcalendarkit.
Yes! I have connected all the libraries written in documents.
from mbcalendarkit.
Hrm... I wonder if there's an MBCalendarKit file that hasn't made it into your project for some reason. Compare your project against the demo project, and see if you've got everything.
Also, feel free to post a screenshot of the MBCalendarKit entries in your project, as well as your linked frameworks, and I'll try to help out.
from mbcalendarkit.
Hello, I'm also have a Linking error but its very different than the other one. As you can see, I do have all the frameworks and I did compare all my project files agains the demo project and they all seem to be there. (I copied the MBCalendarKit into my project, I imported the frameworks and I tried to run the program and that is when I got this error)
I have the latest Xcode 6 - Version 6.0.1 (6A317). I would greatly appreciate any help. Thanks.
(when I remove the Calendar Kit folder from my project, my program works and compiles as usual)
from mbcalendarkit.
Hello, same with me, I get the problem when I tried run the demo project.
from mbcalendarkit.
@turbocms You're including too much in your project. Only include the contents of CalendarKit
, not MBCalendarKit
(which is the parent folder.)
@sanledi-buli Try linking against QuartzCore and/or CoreGraphics. It seems like you're just missing a graphics library.
from mbcalendarkit.
Thank you very much for your help @MosheBerman. I was able to make it work per your suggestion.
I read that I cannot embed your calendar in a NavigationViewController since its already using a NavigationBar. My next challenge is to see if I can somehow embed it in my current project. I am using a Tab bar on my project to call a couple of other NavigationViewControllers so I will try to add your calendar as one of my Tab bar items. I am fairly new to app development (even though I do have 15+ years as a programmer in other mainframe languages). I am familiar with the storyboards but not with the xib files which seems to be what you are using (or maybe not, lol... I'm still trying to figure it out) but I will look up how to use xib files so that I can hopefully add your calendar to my Tab bar project because when I click the Tab item that displays your calendar, I loose my Tab bar. Thanks again.
from mbcalendarkit.
@turbocms That's correct, MBCalendarKit uses a UINavigationController for displaying the calendar, and you can't embed a UINavigationController inside of another one. There is a calendar view that you can play with, but it's been long enough since I wrote this that I have to have a closer look at the architecture.
I've seen the issue with disappearing UITabBars and I'm going to have to take a closer look.
from mbcalendarkit.
@MosheBerman I am currently trying to work on that issue with the disappearing UITabBar myself. In my opinion, it seems like your CalendarViewController is "layering" on top of the TabBar (kind of like a keyboard might "layer" on top of TextFields). I will gladly tell you what I find if find it before you do, Thanks again for all your help.
from mbcalendarkit.
How are you presenting the calendar view controller? (Also, in Xcode 6, you can see the view hierarchy by clicking the small button above the console.
from mbcalendarkit.
Wow!!! This is a great tool!!! A brand new one to me... lol. Let me play with it for a while to see what I can figure out.
Once I do, I will be able to answer your question more accurately but for now, what I can tell you is that I have a TabViewController with 3 bar items. 2 of those bar items display two different NavigationViewControllers that each do a whole bunch of things. For the 3rd bar item, I created a CalendarViewController (I control+dragged from the TabViewController to the CalendarViewController to add that 3rd Tab bar item) and created a class for it in which I copied your code in viewDidLoad:
// 1. Instantiate a CKCalendarViewController
CKCalendarViewController *calendar = [CKCalendarViewController new];
// 2. Optionally, set up the datasource and delegates
[calendar setDelegate:self];
[calendar setDataSource:self];
// 3. Present the calendar
[self presentViewController:calendar animated:YES completion:nil];
When I click that 3rd bar item, I do see your calendar but loose the tab bar.
I will play around with that hierarchy tool you just showed me. I will keep you updated as soon as i find something.
from mbcalendarkit.
Thanks. I've seen that behavior in the default tab bar template, where tapping the second tab drops the tab bar, but I don't know enough about storyboards or Swift to know if there's some behavioral change to cause the bar to vanish.
from mbcalendarkit.
@MosheBerman I just thought I'd give you a quick update. After many attempts to look for a solution as to why I loose the tab bar using CKCalendarViewController, I am sad to say that as of now I have not found one. I decided to change to CKCalendarView. I don't loose the tab bar with CKCalendarView. So as of now, I am implementing it CKCalendarView in my project. Thank for all of your help.
from mbcalendarkit.
No problem! I'm going to look into that and see if I come up with anything.
from mbcalendarkit.
It seems the primary issue was solved, so I'm closing this.
from mbcalendarkit.
What was the issue with linking? I'm running into it myself.
from mbcalendarkit.
@MosheBerman In my case, I was including too much in my project. I had to only include the contents of CalendarKit, not MBCalendarKit (which is the parent folder.)
from mbcalendarkit.
Right, thanks. It looks like various versions of Xcode handle linking differently, and I had to link UIKit, CoreGraphics, and Quartz manually.
from mbcalendarkit.
Related Issues (20)
- Bring `CustomCellProvider` to the HeaderView
- Cell Transition Animation Bug HOT 1
- Unit Test Cell Width Code
- CalendarView doesn't take in account firstDayOfWeek HOT 10
- Disable dragging on CustomCellProviding HOT 5
- Performance Profiling HOT 1
- Allow Custom Next/Back Images
- Month to Week Transition observable gap
- how refresh the data HOT 1
- how avoid show the tab bar HOT 1
- how to use background color in every sunday?
- Hello Project's Owner
- How to show more than one event in single date for MBCalendarKit for swift 4 HOT 1
- Changed it to NSCalendarIdentifierIslamic not working
- How to achieve calendar color customization? HOT 1
- How to change colors of calendar header, arrows, and selected cell?
- How to hide rows in Month display mode.
- Installing mBCalendarKit via Cocoapods is getting failed. HOT 1
- Calendar week view - pressing forwards/backwards buttons sometimes skips a week
- Tab Bar Text...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbcalendarkit.