-1
func initProducts(cateories: Categories){
products = DataServices.instance.getProducts(forCategorieTitle: cateories.nameLabel)
//productTitleName.text = cateories.nameLabel
self.productTitleName!.text = cateories.nameLabel
}
在本節我是面對這一誤差的誤差。臉一些誤差在我的迅速3代碼線程1:EXC_BAD_INSTRUCTION(代碼= EXC_1386_INVOP,子碼=爲0x0),這是我的
是'填充self.productTitleName'? – tadman
我認爲productTitleName outlet不會與UI元素連接,請檢查它是否嘗試分配「productTitleName?.text」而不是「productTitleName!.text」 – Bharath