首页 > 代码库 > Swift 错误 - 错误集

Swift 错误 - 错误集

一、Could not find an overload for “init” that accepts the supplied arguments 

错误信息:

技术分享

解决方案:

let imageStatesImage: Array<UIImage> = [UIImage(named: "x")!, UIImage(named: "o")!]
后面加 ! 就好 

Swift 错误 - 错误集