Swift 错误

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

错误信息:

解决方案:

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

原文地址:https://www.cnblogs.com/ziyeSky/p/4181840.html