hi I am working on with collection view for a calendar. I put a label in the collection view. I give the value to this label from a static array in which I add the months name. Now I have to change the color of label according to the value 0 and 1. if 1 then label turn into green and if 0 then red. These 0 and 1 values I got form the JSON. I put these values in the array.
Now my problem when I use this array in cellForItemAtIndexPath then its crash because the count of rows is 12 and the count of valueArray is 2. Is there any way to work with this. thanks..!
0 comments:
Post a Comment