You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?
I've gotten around this issue by embedding the PDTSimpleCalendarViewController in a container view that's constrained to just below the navigation bar.
I subclassed
PDTSimpleCalendarViewController
and presented it as the root controller of anUINavigationController
The first issue I met is I called
self.navigationController
in- (void)viewDidLoad
and it always returnsnil
and I have to change thenavigationBar
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?
The text was updated successfully, but these errors were encountered: