0

I currently am working on a project which has a UICollectionView, what I would like to do is to have another "Path" on the NSIndexPath, so that I can find an item. Essentially I currently have:

A Section (which contains an individual) A Row (which is essentially a "Day") this has multiple events in for an individuals day.- this is where i would like an extra index on my index path!)

But whenever I try to add an additional index on it complains that I can't have more than 2 indexes in my index path. (However it does say I could use a "Category" - therefore is there away I can do this in Xamarin / C# or am I out of luck?

VVN
  • 1,607
  • 2
  • 16
  • 25
Chris
  • 304
  • 3
  • 15
  • Are you able to post any code with what you are trying to achieve? – Iain Smith Apr 21 '16 at 14:08
  • What does your data source look like? Is it: Section[Row[Item]]? Where Section is a List of Lists, Row is a List and Item is the individual Item? – pnavk Apr 22 '16 at 21:02
  • It looks like a list of lists... so... a section would be a list of people, then within that is a list of days, then a list of what work they are doing on that day.... – Chris Apr 25 '16 at 11:59

1 Answers1

0

Categorys in Objective-C is like an extension method in C#.

You cant add a new property with extension methods see here but you could do this add another NSIndexPath property to your collectionView cell class.

Community
  • 1
  • 1
Iain Smith
  • 9,230
  • 4
  • 50
  • 61
  • How do you mean add another NSIndexPath property to collectionView cell, (sorry my brain is a little fried today) – Chris Apr 21 '16 at 14:12