Skip to content
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

Question on the Calendar view #9

Open
roro95 opened this issue Mar 9, 2016 · 0 comments
Open

Question on the Calendar view #9

roro95 opened this issue Mar 9, 2016 · 0 comments

Comments

@roro95
Copy link

roro95 commented Mar 9, 2016

Hi

Thanks for this project which is very useful. However I would have a question regarding the handling of the vertical "Hour " as I don't undestand where it is managed . I tried to chnage the number of hours per day with no effect. From where it is dequeued ?
Hope it's clear :)
extension CalendarViewController: SapporoDelegate {
func collectionView(collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, atIndexPath indexPath: NSIndexPath) -> UICollectionReusableView {
if kind == CalendarHeaderType.Day.rawValue {
let view = collectionView.dequeueReusableSupplementaryViewOfKind(kind, withReuseIdentifier: CalendarHeaderView.reuseIdentifier, forIndexPath: indexPath) as! CalendarHeaderView
view.titleLabel.text = "Day (indexPath.item + 1)"
return view
}

**    let view = collectionView.dequeueReusableSupplementaryViewOfKind(kind, withReuseIdentifier: CalendarHeaderView.reuseIdentifier, forIndexPath: indexPath) as! CalendarHeaderView
    view.titleLabel.text = "Hour \(indexPath.item + 1)"
    return view**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant