草庐IT

unloadedRows

全部标签

Swift 语言 : How do I implement a dictionary of array values, 并将新值分配(即追加)到数组?

语言:Swift我声明了一个值为数组的字典,如下所示:varunloadedImagesRows=[String:[Int]]()privatefuncaddToUnloadedImagesRow(row:Int,forLocation:String!){print("addToUnloadedImagesRow0:row:\(row)")varunloadedRows=imagesRowForLocation(forLocation)unloadedRows!.append(row)}privatefuncimagesRowForLocation(location:String!)-