-
Notifications
You must be signed in to change notification settings - Fork 344
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
iOS7 #94
Comments
Just use UILabel instead. Works like a charm. Here's the code I'm using for the date in KalTileView.m:
where |
Thank´s you're awesome ;) |
@JackJackBauer: Can you please share how the variable "adjustDateText" has been initialized with device dependant values |
Sure. I'm basically just going through some tests for devices and set the variable accordingly: in I then set a bunch of layout-variables:
float adjustDateText = 2.f;
if ([device isEqualToString:@"iPhone5"])
{
...
adjustDateText = 5.f;
} else if ([device isEqualToString:@"iPadLandscape"])
{
...
adjustDateText = 13.f;
}
And while we're at it: In fact I'm even checking for my custom 6-weeks-layout there and adjust for that too (I hated the wasted display-area for moths with just 5 weeks vs. those with 6 weeks...)
where I passed the number of weeks (lines) in the current month from KalGridViews BTW the whole layout is easily customizable to a iOS7-like flat layout with the proper use of flat images and fonts. :-) |
thanks for the response. But unfortunately this method is only working for the initial month view in the calendar. for the next month or previous month views, the date texts are overlapping. Is there any reset need to the label frame? |
Hmm... I do not see any overlapping. But then I worked with the project and customized it for about 2 1/2 years now so there really isn't much left from the original ;-) As I see it, when you make the changes to KalTileView.m it should affect all instances of those - i.e. all tiles. Not just those of the initial month, because all tiles are based on KalTileView. What do you show in the tiles? Just the date as a number? What does it look like when these are overlapping? |
KalTileView.m CGContextSelectFont sizeWithFont CGContextShowTextAtPoint Are deprecated in iOS 7 can you help please
The text was updated successfully, but these errors were encountered: