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

Date Range Selection Cell Manipulation #97

Closed
mrjimoy opened this issue Aug 2, 2016 · 9 comments
Closed

Date Range Selection Cell Manipulation #97

mrjimoy opened this issue Aug 2, 2016 · 9 comments

Comments

@mrjimoy
Copy link

mrjimoy commented Aug 2, 2016

Hi, finally I found a way to make it as a date range, but there still some gap between dates (white spaces) :

image

I would like to make it like :

image

This is the code to accomplish that (your code with some modification) :

image

So basically I add 2 UIView on the CellView, a half on the left side (leftSelectedView) and a half on the right side (rightSelectedView).

How to close that gap? Thanks.

@patchthecode
Copy link
Owner

patchthecode commented Aug 2, 2016

Whats your cell inset?
calendarView.cellInset = CGPoint(x: 0, y: 0)
set it to zero like above

@mrjimoy
Copy link
Author

mrjimoy commented Aug 2, 2016

@patchthecode Thank you, it's worked now :)

@mrjimoy mrjimoy closed this as completed Aug 2, 2016
@patchthecode
Copy link
Owner

patchthecode commented Aug 3, 2016

Hey, your calendar looks sorta nice. If you dont mind, do you wanna place an image of it at this link ? -> https://github.com/patchthecode/JTAppleCalendar/issues/2

Pretty images helps others know the sort of cool stuff they can do with this library. I sort of need the publicity.
If you don't then its cool either way.

@learnwithgabbar
Copy link

can you share your code please

@sathish-ajira
Copy link

i am also need this feature.can someone share this code please.

@roundfly
Copy link

roundfly commented Sep 27, 2017

Hi, having the same issue as mrjimoy but there doesn't seem to be a property named cellInset on calendarView. Not sure if you've renamed it in an update or?
Also thanks for the best iOS calendar out there, you've saved me a lot of time. + star'd 👍

@patchthecode
Copy link
Owner

@Dzoni89 yes, every thing has been renamed to exactly match Apple's UICollectionView's function names and variables. This makes it easier for developers to find the names they need without trying to remember the weird names i invent.

calendarView.minimumLineSpacing = ?
calendarView.minimumInteritemSpacing = ?

@roundfly
Copy link

screen shot 2017-09-28 at 7 42 33 am

@patchthecode thanks for the reply, I've actually tried setting minimumLineSpacing and minimumInterimSpacing to 0 prior to posting here. But now that I've given each cell a border I see that there is no cell spacing, my top and bottom border whose widths are set to equal cell.frame.size.width seem to have some weird spacing. Screwed up with the math somewhere probably, cheers. :/

@patchthecode
Copy link
Owner

@Dzoni89 if you are free, you can contact me here -> https://gitter.im/patchthecode/JTAppleCalendar
I am not understanding the problem correctly.

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

5 participants