jaykz52/CKCalendar — pull request #6 by mwaters (2012-07-31 10:55:47+00:00)
Title: Fix for -1 row (your issue 5)

Contains better fix for issue 5 ("Wrong position in the days of the month").
I too noticed a difference in the return value for NSWeekOfMonthCalendarUnit used in your method weekNumberInMonthForDate. On the simulator this works fine, but on iPad 1 running iOS 5.1, in UK regional format, the July 2012 month shows with 1st July above the first line (trampling over the days of the week titles). Investigation showed this was due to the components:fromDate: returning zero value.

Better solution than that proposed in your issue 5 is to use NSWeekOfYearCalendarUnit, and run the components:fromDate: again for the first day in the month. Subtracting the two gives a zero-based week in month.

Also included setter for selectedDate, so the date can be set outside the class. Setting a new selectedDate updates the UI to show that month and the selected day.