当前位置: 动力学知识库 > 问答 > 编程问答 >

swift - Iterate through Multiple Arrays

问题描述:

How do I iterate through multiple arrays in a for loop. I am aware of the zip method, but what if i have 9 arrays?

var usernames = [String]()

var avatars = [PFFile]()

var postDescriptions = [String]()

var locations = [String]()

var latitudes = [String]()

var longitudes = [String]()

var postFiles = [PFFile]()

var dates = [Date]()

var uniqueIDs = [String]()

and as you can see, they are of multiple formats.

分享给朋友:
您可能感兴趣的文章:
随机阅读: