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

Remove the grayed color dates #725

Closed
bbo-jay opened this issue Feb 24, 2018 · 4 comments
Closed

Remove the grayed color dates #725

bbo-jay opened this issue Feb 24, 2018 · 4 comments

Comments

@bbo-jay
Copy link

bbo-jay commented Feb 24, 2018

I have check this question #56 and I saw this https://patchthecode.github.io/CommonQuestions/#1 but the method itemSize cannot be found anymore.

@patchthecode
Copy link
Owner

renamed to cellSize.

@bbo-jay
Copy link
Author

bbo-jay commented Feb 26, 2018

I tried this https://patchthecode.github.io/CommonQuestions/#1 and change itemSize to cellSize

and this is cellSize = 20
screen shot 2018-02-26 at 10 10 58 am

this is cellSize = 40
screen shot 2018-02-26 at 10 11 19 am

this is cellSize = 50
screen shot 2018-02-26 at 10 11 43 am

the grayed dates (which is red now since I changed the color) is still there

@patchthecode
Copy link
Owner

patchthecode commented Feb 26, 2018

Im not sure what you want to do.
CellSize changes the cell size.
But if you want to "remove" the gray colored dates, then simply set their visibility to hidden.

if cellState.dateBelongsTo == .thisMonth {
   myCell.isHidden = false
} else {
   myCell.isHidden = true
}

thats it. Put this in your cellForItemAt function.

@bbo-jay
Copy link
Author

bbo-jay commented Feb 26, 2018

ow thanks. cheers

@bbo-jay bbo-jay closed this as completed Feb 26, 2018
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