Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

how to draw multi-day event rectangles across multiple days on a month-view calendar on IOS?

callaggacallagga Posts: 20New Users @
What approach is recommended to draw multi-day event rectangles across multiple days on a month-view calendar on IOS? Keeping in mind the goal to be able to drag/drop the event bars around on the calendar

Too options that come to mind, however I'm not sure which would be best (or if there is another) is:
  1. Use CollectionView (with UICollectionViewFlowLayout) - but then there wouldn't be one object per multi-day event would there? i.e. Every multiple day event would need to effectively draw a portion of itself separately in each day cell, and ensure the drawing lines up to appear as single bar
  2. Draw the calendar yourself, so you can put multi-day rectangle bars for ease in drag-droppping, but then you wouldn't get the rendering support from the UICollectionView associated with continuing to scroll through the calendar and it creating/removing cells as required?

Any suggestions/direction welcome.
Sign In or Register to comment.