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

Wired weekday header position and height after subclassed PDTSimpleCalendarViewController #82

Open
mrcrow opened this issue Oct 15, 2015 · 3 comments

Comments

@mrcrow
Copy link

mrcrow commented Oct 15, 2015

I subclassed PDTSimpleCalendarViewController and presented it as the root controller of an UINavigationController

The first issue I met is I called self.navigationController in - (void)viewDidLoad and it always returns nil and I have to change the navigationBar color in the - (void)viewWillAppear: instead.
This is not the big problem.

Then I want it to display the weekday header.
I set the controller.weekdayHeaderEnabled = YES
As a result, the view shifted up and not fully showed on screen.

My device is iOS 8.3, any idea?

@mrcrow mrcrow changed the title Wired week header position and height after subclassed PDTSimpleCalendarViewController Wired weekday header position and height after subclassed PDTSimpleCalendarViewController Oct 15, 2015
@csrking
Copy link

csrking commented Oct 15, 2015

I can't speak to the weekday header issue but I have similarly sub-classed the PDTSimpleCalendarViewController and I have no issues with the navigationController being nil in viewDidLoad or elsewhere.
I have only tested on iOS 9 so far, however. Do you see this problem under other iOS versions?

@archfear
Copy link
Contributor

I've gotten around this issue by embedding the PDTSimpleCalendarViewController in a container view that's constrained to just below the navigation bar.

@RB-King
Copy link

RB-King commented Apr 26, 2017

@archfear Please help me with this #98

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