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

Hiding header #255

Closed
sochalewski opened this issue Apr 7, 2016 · 10 comments
Closed

Hiding header #255

sochalewski opened this issue Apr 7, 2016 · 10 comments

Comments

@sochalewski
Copy link
Contributor

Is it possible to hide the header? I don't need one and it just takes place.
I know i can set height for zero, but I want to disable it at all.

@sochalewski sochalewski changed the title Hide header Hiding header Apr 7, 2016
@pradeep-chauhan
Copy link

calendar.appearance.headerMinimumDissolvedAlpha = 1

This will hide your calendar header which is showing Ex:- April 2016

@sochalewski
Copy link
Contributor Author

I think you meant 0. But actually that doesn't hide the header, but just change prev/next month labels' alpha.

I user calendar.headerHeight = 0.0 (also available via IB), but not sure if that's proper way. It can be still rendered and use resources, but just being invisible.

@pradeep-chauhan
Copy link

Give header title color to UIColor.clearColor;

@pradeep-chauhan
Copy link

self.calendar.appearance.headerTitleColor = UIColor.clearColor

@pradeep-chauhan
Copy link

Check this code

@sochalewski
Copy link
Contributor Author

I believe this only hides the title, but place for it stays visible.

@pradeep-chauhan
Copy link

You can put your view on that particular portion.

@GaneshKumarSelvam
Copy link

@sochalewski got any solution for decreasing and hiding the header

@sochalewski
Copy link
Contributor Author

sochalewski commented Sep 25, 2018

@GaneshKumarSelvam I guess I use just

calendar.calendarHeaderView.isHidden = true
calendar.headerHeight = 6.0 // this makes some extra spacing, but you can try 0 or 1

@anaadltd
Copy link

screen shot 2019-01-29 at 11 19 03 pm
I need like this what I do sir..

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

4 participants