Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a horizontal calendar #853

Closed
mhergon opened this issue Aug 13, 2018 · 5 comments
Closed

How to create a horizontal calendar #853

mhergon opened this issue Aug 13, 2018 · 5 comments

Comments

@mhergon
Copy link

mhergon commented Aug 13, 2018

  1. v7.1.5
  2. Are you using the latest version of JTAppleCalendar? Yes
  3. Info about the problem:

Hi,

I need to create a calendar like this:

captura de pantalla 2018-08-13 a las 10 55 17

How could I do that with JTAppleCalendar?

Thanks!

@patchthecode
Copy link
Owner

Create single row calendar like this -> #581
But design your cell with a month label inside it so that they both scroll.

@mhergon
Copy link
Author

mhergon commented Aug 13, 2018

@patchthecode yes, this is my first approach.
But, is there any way to get only months like days?

@patchthecode
Copy link
Owner

is there any way to get only months like days?

I am not sure what this means?

@mhergon
Copy link
Author

mhergon commented Aug 14, 2018

If I want get the months between two dates using the same delegates than days calendar, returns me:

captura de pantalla 2018-08-14 a las 8 18 34

How do I configure the calendar to return months instead of days in the delegate methods?

@patchthecode
Copy link
Owner

patchthecode commented Aug 14, 2018

The delegate methods return a Date variable.
You can use a DateFormatter() to get any thing from the date.

Like the -> month, year, etc etc
Make do not create the DateFormatter() inside functions that gets called a lot, because this object is heavy.

will close this issue now.
Let me know if youre still stuck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants