About

This is the technical notes from a few of Karmadust’s projects. We are all for sharing and contributing as we have received a lot ourselves. You can get a full list of our code base on GitHub.

 

 

5 thoughts on “About

  1. I am fan of your tutorial and code . I would like to discuss an opportunity with you . Shall we have a skype call ? please let me know further.

  2. Hi Michael,

    Thanks for posting CalendarView, it was great help.
    I think there could be an issue with the events variable on CalendarView.swift

    instead of:
    if var eventsList : [CalendarEvent] = eventsByIndexPath[indexPath] {
    eventsList.append(calEvent)
    } else {
    eventsByIndexPath[indexPath] = [calEvent]
    }

    should be:
    if var _ = eventsByIndexPath[indexPath] {
    eventsByIndexPath[indexPath]?.append(calEvent)
    } else {
    eventsByIndexPath[indexPath] = [calEvent]
    }

    otherwise you only get one event per day even if there are many!

    Thanks again,
    Guy

    1. ops, made a typo:

      if (eventsByIndexPath[indexPath] != nil) {
      eventsByIndexPath[indexPath]?.append(calendarEvent)
      } else {
      eventsByIndexPath[indexPath] = [calendarEvent]
      }

Leave a Reply

Your email address will not be published. Required fields are marked *