Comments (17)
Look at your error: it says that your endSection
< startSection
which can't be in a Range (aka ...
). The left value has to be lower than the right value
from jtapplecalendar.
@stillLife456 I have seen this range error, and have fixed it in later versions. The latest version of the library is version 4.0.0
. Can you try using this and see if your error is resolved?
from jtapplecalendar.
Hey, I've updated to 4.0.0 and am now getting a different error. I had to change the signature for configureCalendar to include numberOfRows, but now I'm getting an error in JTAppleCalendar.swift
The data source is set in my CalnedarViewController and it was working before the update.
from jtapplecalendar.
I downgraded back to 3.0.0. The app will run (no issues with dataSource) but back to the range error when trying to load headers.
from jtapplecalendar.
OK. i'm back.
When you update to 4.0.0, you will get that error with your configureCalendar
function. This is because I have changed the way the number or rows are handled. This was needed because of some concurrency issues.
Can you paste me the code for your viewDidLoad()
? You should not be getting an error telling you that the datasource isnt set.
from jtapplecalendar.
When I run this in 3.0.0 it's fine
When I update to 4.0.0, change configureCalendar but nothing in the viewDidLoad I get this
It seems from the print statements the the dataSource is being set in the viewDidLoad, but when I try to print just before the error (in JTCalendarView class) I'm getting nil
I don't get it!
from jtapplecalendar.
Are you online now? Any chance we can chat here?
https://gitter.im/patchthecode/JTAppleCalendar
from jtapplecalendar.
Or is there a chance you can just zip the buggy version of your app so i can have a look? You can drop the file in the textBox here.
I am asking this because I cannot re-create your issue
from jtapplecalendar.
Btw, looking at your screen shots, it is saying Data source is not set
because you are probably sending something weird in the configure function.
Can you paste the line of code you are returning from the configure function?
from jtapplecalendar.
This chat here is too slow. If you get a chance, send me a message on that chat link i sent you above (before i head to sleep, else we'll have to talk tomorrow)
from jtapplecalendar.
Hey, sorry I'd already turned in. Here's a zip of my stuff, be gentle, I'm just a student! This is with version 4.0.0.
CalendarTest.zip
I can chat in the evenings Pacific Standard Time. Thanks!
from jtapplecalendar.
Well i'm up now. Checking the file now.
from jtapplecalendar.
Hey, i looked at your main.storyboard.
It seems you are doing some... interesting things in there.
I think you should take a look at the tutorial if you have not already done so.
- The red arrow - this view should be a UIView. Because it is the main view of your viewController
- The 2 green arrows - I do not know what you have done to them, they both look transparent in color as you can see in the screen shot, and i could not find them on the storyboard.
Here is the fixed file.
CalendarTest.zip
But even though it is fixed, it is lagging as hell, and it is also throwing errors.
I do not know what you are doing with event kit, but I will tell you this: Keep in mind that the setting up of the calendar cell is exactly as setting up a UITableViewCell. This means that the setup has to be fast. You cannot do any huge or long taking task in that function else your calendar will appear laggy to your end users.
from jtapplecalendar.
I will advise you to take a look at the tutorial --> here
If the tutorial is unclear, then I can always improve on it. Just let me know.
from jtapplecalendar.
I will close this issue. But if you can still chat on here if you need further help. The problem does nto appear to be with the library in this case.
from jtapplecalendar.
Hey sorry I didn't get back to you sooner, I had a calculus test today. You
are correct, the problem was with my implementation not with the library.
Thanks for your help, I may have more questions once I have more time to
explore the calendar further.
Thanks,
Don
On Jun 9, 2016 2:59 PM, "JTAppleCalendar" [email protected] wrote:
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#42 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AS36clQNMxINuOO9gPZ0gxjt9jlRjlZoks5qKIzEgaJpZM4IviqJ
.
from jtapplecalendar.
Its cool. Best of luck on your test m8.
And yea, any other questions, just open a new issue. cheers
from jtapplecalendar.
Related Issues (20)
- Scroll to previous year month from current Date HOT 1
- Events Not Showing HOT 4
- Doesn
- Doesn't Compile in Xcode 15 HOT 4
- Stored properties cannot be marked unavailable with '@available' HOT 2
- Spacing between dates HOT 1
- Xcode15: Stored properties cannot be marked unavailable with '@available' HOT 3
- JTACMonthView.reloadData completion handler is not always invoked HOT 6
- Application got crashed :
- Application got crashed at JTACMonthLayout
- Application got crashed at JTACMonthLayout due to nil value HOT 11
- Calendar crashing on iOS 17 HOT 4
- Crashlytics Reports 100% Crash Rate in iOS 17 HOT 8
- Stored properties cannot be marked unavailable with '@available' error on Xcode 15 HOT 4
- Error - Stored properties cannot be marked unavailable with '@available' HOT 3
- Xcode 15 Error "Stored properties cannot be marked unavailable with '@available" HOT 4
- xCode 15 compatibility issue
- Only iOS 17 Crash - JTACMonthLayout - setupDataFromDelegate HOT 11
- I use Xcode Version 14.3.1 (14E300c). But the bug? issue has 'No such module 'JTAppleCalendar' HOT 3
- Additional line of days in previous month if use cellState.dateBelongsTo for cells hide or style HOT 5
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 jtapplecalendar.