bannzai / SpreadsheetView

Full configurable spreadsheet view user interfaces for iOS applications. With this framework, you can easily create complex layouts like schedule, gantt chart or timetable as if you are using Excel.
MIT License
3.52k stars 458 forks source link

how to set value into timeTable Cell #268

Closed hungwei0331 closed 4 years ago

hungwei0331 commented 4 years ago

Expected Behavior

i had read the sample code of timeTable example project,

for example if i want to set the slot name into cell,

expected to add String into slotInfoArray

how could i make it,

sorry i know its a easy question,

but i stocked in this,

slotInfo[IndexPath(row: cellRange.from.row, column: cellRange.from.column)] = (minutes, duration)

thanks in advance for any comment

hungwei0331 commented 4 years ago

I found that "var slotInfo = [IndexPath: (Int, Int)]()" is an dictionary modified the value directly would be solved