2013年3月7日木曜日

UICollectionViewLayout を使ったカレンダGUI

カレンダーGUIを実現するUICollectionViewLayoutのサブクラス(ライブラリ)。このアイディアはなかなか。


メインとなるクラスはMSCollectionViewCalendarLayoutで、各パーツを構成するクラスがたくさんある。
- Event Cell (UICollectionViewCell) – Represents your events.
- Day Column Header (UICollectionReusableView) – Contains the day text, top aligned.
- Time Row Header (UICollectionReusableView) – Contains the time text, left aligned.
- Day Column Header Background (UICollectionReusableView) – Background of the day column header.
- Time Row Header Background (UICollectionReusableView) – Background of the time row header.
- Current Time Indicator (UICollectionReusableView) – Displayed over the time row header, aligned at the current time.
- Current Time Horizontal Gridline (UICollectionReusableView) – Displayed under the cells, aligned to the current time.
- Horizontal Gridilne (UICollectionReusableView) – Displayed under the cells, aligns with its corresponding time row header.


0 件のコメント:

コメントを投稿