Giter Site home page Giter Site logo

Comments (17)

akabab avatar akabab commented on May 2, 2024

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.

patchthecode avatar patchthecode commented on May 2, 2024

@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.

stillLife456 avatar stillLife456 commented on May 2, 2024

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
screen shot 2016-06-07 at 10 22 22 am
The data source is set in my CalnedarViewController and it was working before the update.

from jtapplecalendar.

stillLife456 avatar stillLife456 commented on May 2, 2024

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.

patchthecode avatar patchthecode commented on May 2, 2024

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.

stillLife456 avatar stillLife456 commented on May 2, 2024

When I run this in 3.0.0 it's fine
screen shot 2016-06-07 at 10 36 24 pm

When I update to 4.0.0, change configureCalendar but nothing in the viewDidLoad I get this
screen shot 2016-06-07 at 10 44 22 pm
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
screen shot 2016-06-07 at 10 54 38 pm
I don't get it!

from jtapplecalendar.

patchthecode avatar patchthecode commented on May 2, 2024

Are you online now? Any chance we can chat here?
https://gitter.im/patchthecode/JTAppleCalendar

from jtapplecalendar.

patchthecode avatar patchthecode commented on May 2, 2024

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.

patchthecode avatar patchthecode commented on May 2, 2024

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.

patchthecode avatar patchthecode commented on May 2, 2024

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.

stillLife456 avatar stillLife456 commented on May 2, 2024

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.

patchthecode avatar patchthecode commented on May 2, 2024

Well i'm up now. Checking the file now.

from jtapplecalendar.

patchthecode avatar patchthecode commented on May 2, 2024

Hey, i looked at your main.storyboard.
It seems you are doing some... interesting things in there.

screen shot 2016-06-08 at 12 37 33 pm

I think you should take a look at the tutorial if you have not already done so.

  1. The red arrow - this view should be a UIView. Because it is the main view of your viewController
  2. 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.

patchthecode avatar patchthecode commented on May 2, 2024

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.

patchthecode avatar patchthecode commented on May 2, 2024

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.

stillLife456 avatar stillLife456 commented on May 2, 2024

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:

Closed #42 #42.


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.

patchthecode avatar patchthecode commented on May 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.