如何在用户键入的该数组特定行的视图容器中查找数据模型的数组值?

时间:2019-06-04 07:52:47

标签: swift google-cloud-firestore

我不知道如何查找用户键入的特定索引的数组值。我已将该数组连接到包含2个值的数据模型?

实现数据模型的新变量后,我尝试使用.contain值,但没有用

let productsNamess = document.data()["ProductName"] as! String
let quantityGame = document.data()["Quantity"] as! String

// making a new net stock data incoming class
let newClassForProducts = dataModelOutgoing()
newClassForProducts.productName = productsNamess
newClassForProducts.quantity = Int(quantityGame)

// forward data to main dataincoming main class
self.dataIncoming.append(newClassForProducts)

我不知道如何从一个数组中包含两个值的数组中取出数据。

0 个答案:

没有答案