Mat_16
Mat_16

Reputation: 3

UITableviews inside UICollectionViewCells

I am trying to make a calendar like a google calendar in which each square has some text (events of the day).

For this, I think I must put a UITableView inside each UICollectionViewCell, but I am not accomplishing it. I don’t have a sample code because I don’t even know how to start solving this.

Upvotes: 0

Views: 68

Answers (1)

Let's_Create
Let's_Create

Reputation: 3623

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

Upvotes: 1

Related Questions