-1

I am new to IOS.I used to work as Android developer. I am using MDCCardCollectionCell/MDCCard for Cardviews in my project. When i was working on android, to display number of cards - we used to return number in getItemCount() Adapter class. Similarly, i want to know which method (or) where should we return cards count?

Example : if i give return 4 , 4 cardviews should display on screen.

Thanks in advance.

Eswar
  • 199
  • 1
  • 13

1 Answers1

0

you should use the numberOfItemsInSection method for the count of total items.

check this example here

Akash Soni
  • 535
  • 2
  • 16