-
Notifications
You must be signed in to change notification settings - Fork 123
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
CKCalendarView appearing behind iOS 7 status bar #37
Comments
This is caused because of a change in iOS 7's full screen paradigm. I thought I had fixed this, but I'll take a look in a particular project that uses it and see if I can find the fix I applied there. Give me a few minutes please. |
Are you using |
I'm using |
Looking now. It's been a while... |
Ah, so I see what's going on here. If you poke around inside of In iOS 6, this wasn't an issue, because the navigation bar occupied the top of the display. For iOS 7, I made some changes to the Solutions I'm considering:
What do you think? |
PS: As a short term hack, try setting the |
I'm sorry, I'm relatively new to Objective-C, so I'm not positive on the best long-term resolution for it. However, the second solution of emulating the Setting the
|
...although my solution also requires you to add 64-pixels to the
|
Interesting... That's right, the tableFrame needs to be shifted. Don't forget to remove that same value from the bottom though. (The height property may be 64 pixels too long.) As general practice, you're not supposed to hard code values, but instead use a dynamically calculated value. As I said, I really need to get working on this, but thanks for pointing out the issues and your tentative solution. |
No problem - thanks for pointing me in the right direction! |
I fixed this issue by setting my navigationBar.translucent to NO. |
That makes sense, because iOS 7 will stretch views to the full height of the screen if the navigation bar is translucent. If you want to keep a translucent bar, look at the preceding discussion, for now. |
The correct fix is to use the |
The correct fix is to count |
@4tress, Ah, for the table offset, yes. I'd suggest using the CGGeometry macros, though. ( I've got my hands full at the moment, but I do intend to work on a fix for this. |
How are we all doing with this? |
I fixed this by adding calendar.frame = CGRectOffset(self.view.frame, 0.0, 65.0); to the viewDidLoad |
I'm still experiencing it...using griffind's solution for now. |
Would be nice to have it fixed, but the work around is okay for now. Also--I can't seem to initiate an instance of class CKCalendarViewControllerInternal, do I need to import another file for that? |
The internal view controller needs to be imported separately. It's imported in the public version of the view controller, which subclasses UINavigationController instead of UIViewController. It's otherwise the same thing. |
This is a similar issue to having a
UITableView
on aUIView
in iOS 7, where theUITableView
starts too high and is behind the status bar. When I put aCKCalendarView
on aUIView
, the calendar starts behind the status bar, too. I can't seem to figure out a way of pushing it down by 64-pixels to be in the correct place. Is there something I'm missing?The text was updated successfully, but these errors were encountered: