Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/objcio/issue-3-collection-view-layouts
https://github.com/objcio/issue-3-collection-view-layouts
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/objcio/issue-3-collection-view-layouts
- Owner: objcio
- Created: 2013-08-08T08:32:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-05-30T11:25:56.000Z (over 8 years ago)
- Last Synced: 2024-08-01T19:55:51.515Z (5 months ago)
- Language: Objective-C
- Size: 46.9 KB
- Stars: 194
- Watchers: 13
- Forks: 59
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WeekCalendarLayout
A custom `UICollectionViewLayout`.
A sample project for [objc.io Issue #3](http://www.objc.io/issue-3).
Written by [Ole Begemann](http://oleb.net), August 2013.Please see the [article](http://www.objc.io/issue-3/collection-view-layouts.html) for a discussion of the code.
Note that this project is only sample code and not intended to be used directly in production. In order to make the code easier to understand, I use simplified date calculations that assume a constant 7 days per week and 24 hours per day and are not based on a real calendar. To use this layout in a real calendar app, you would have to replace the computations with real `NSCalendar`-based date calculations.