Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

callagga

macrumors member
Original poster
Mar 2, 2007
84
0
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/direciton welcome.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.