UITableView create 4 square

后端 未结 2 1818
陌清茗
陌清茗 2020-12-22 07:20

I want to create calendar view with UITableView

I want to have 4 square in each rows like the below picture:

would you please help me, how can I have 4 squ

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-22 08:11

    If you want to create a calendar view, check out this code for some ideas (depending on what you want to achieve).

    To create a UITableView row with four equally sized cells, just implement the tableView:cellForRowAtIndexPath: datasource method to create a view with e.g. four equally sized UILabels.

提交回复
热议问题