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

Cannot see the Title and days label are over status bar #83

Open
redigloo opened this issue Oct 22, 2015 · 2 comments
Open

Cannot see the Title and days label are over status bar #83

redigloo opened this issue Oct 22, 2015 · 2 comments

Comments

@redigloo
Copy link

Hey! I implemented the calendar but I have some problems to have a correct render with the header. I can't see the title I set and also the day labels are over the status bar.
slack for ios upload-4 png

PDTSimpleCalendarViewController *calendarViewController = [[PDTSimpleCalendarViewController alloc] init];

[calendarViewController setDelegate:self];
calendarViewController.weekdayHeaderEnabled = YES;
calendarViewController.weekdayTextType = PDTSimpleCalendarViewWeekdayTextTypeShort;
[calendarViewController setTitle:@"SimpleCalendar"];
if ([UIViewController instancesRespondToSelector:@selector(edgesForExtendedLayout)]) {
    [calendarViewController setEdgesForExtendedLayout:UIRectEdgeNone];
}

[self presentViewController:calendarViewController animated:YES completion:nil];
@redigloo redigloo changed the title Cannot see the Title and days label are over navigation status Cannot see the Title and days label are over status bar Oct 22, 2015
@yuwen-yan
Copy link
Contributor

Hi, @redigloo thanks for your feedback, what's the title do you mean? the title on UINavigationbar? You'd better check out the demo project first, and use PDTSimpleCalendar in the same way.

@jmig
Copy link
Contributor

jmig commented Oct 26, 2015

@redigloo Your view controller is full screen and so overlaps with the status bar. There are multiple way to deal with that. One simple could be to embed the CalendarViewController in a UINavigationController so you can set a title, and the best part is that UINavController will handle the status bar "Management" for you. (The height of the Navigation bar will be 64px or 44px depending on wether or not there is a status bar displayed or not)

You should read the accepted answer here : http://stackoverflow.com/questions/18294872/ios-7-status-bar-back-to-ios-6-default-style-in-iphone-app/18855464#18855464

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

3 participants