0
MCIAPHelper.sharedInstance.buyProduct(self.fetchedProducts[0]) . // getting exception in this line
if let sender = sender as? UIButton {
sender.userInteractionEnabled = false
self.buttonToRestore = sender
}
}
我創建按鈕購買,當我敲擊按鈕例外快到了,能有人建議我,我做錯了什麼。執行應用程式內購買IOS,但是當我在按鈕輕敲我得到異常作爲fatel錯誤:數組索引超出範圍
的錯誤信息是很清楚的:你索引的東西,在它沒有任何項目。爲什麼?不知道基於這個代碼。調試時間 –