We don't need a UITableView
, we can do it just by using UICollectionView
.
But as you are new to this I suggest using a library JTAppleCalender
.
With this library, you can create a calendar in iOS very easily and it is highly customizable.
List of features:
- Range selection - select dates in a range. The design is entirely up
to you.
- Boundary dates - limit the calendar date range
- Week/month mode - show 1 row of weekdays. Or 2, 3 or 6
- Custom cells - make your day-cells look however you want, with any
functionality you want
- Custom calendar view - make your calendar look however you want, with
what ever functionality you want
- First Day of week - pick anyday to be first day of the week
- Horizontal or vertical mode
- Ability to add month headers in varying sizes/styles of your liking
- Ability to scroll to any month by simply using the date
- Ability to design your calendar however you want. You want it, you
build it.
Github link: https://github.com/patchthecode/JTAppleCalendar
If you think that you don't want to use any library this answer may help you: Custom calender View