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'm using TKCalendarMonthView-related classes in an app. When the app starts up, December 26 is highlighted as "today", even though it's currently January 7. The result looks like this: http://dl.dropbox.com/u/14191/CalDemo.png
I put together a minimal test case that demonstrates this behavior. The demo project adds TKCalendarMonthView and related files, and then does just this:
I forgot that I had renamed a couple of variables in TKCalendarMonthView.m because of compiler warnings, and apparently one of them needs to have its original name. In -drawRect:, CGRect "r" is declared twice and LLVM reports "declaration shadows a local variable". I made a guess at fixing this but apparently guessed wrong. The declaration is at line 324 in the latest version:
CGRect r =[self rectForCellAtIndex:index];
CGRect r was previously declared just above on line 318. I had renamed the inner declaration but apparently that's what caused my problem. Changing this line by dropping CGRect seems to fix the compiler warning without causing buggy behavior.
Incidentally the same problem exists in -initWithSundayAsFirst:. The variable s is passed in as a BOOL argument but then also declared as a pointer to NSString on line 700. In this case changing the second declaration to use a different name doesn't seem to cause any problems.
I'm using TKCalendarMonthView-related classes in an app. When the app starts up, December 26 is highlighted as "today", even though it's currently January 7. The result looks like this: http://dl.dropbox.com/u/14191/CalDemo.png
I put together a minimal test case that demonstrates this behavior. The demo project adds TKCalendarMonthView and related files, and then does just this:
None of the delegate/data source methods are implemented.
The demo can be found at http://dl.dropbox.com/u/14191/CalDemo.zip
The text was updated successfully, but these errors were encountered: