Increment array index Swift 3

89 Views Asked by At

I have some objects in parse server, I am retrieving the objects successfully. The issue I am having is that I have a PFFile object storing images and it’s Optional. Whenever the PFFile array doesn’t have the same number of values as the other arrays populating my tableview, the program crashes because the index is out of range. I am unable able to increment the PFFile array index with the indexes of the other arrays to populate my TableView. How can I increment the index of the PFFIle array to have the same index count as the other arrays? Any help in the right direction would be appreciated.

0

There are 0 best solutions below