标签: swift
我有一个图像文件名列表,每次应用程序尝试运行时,它都会在声明图像名称数组的行上崩溃。
class Home: UIViewController { @IBOutlet weak var banner: UIImageView! var imageList:[String] = ["image1", "image2", "image3", "image4"] let maxImages = 3 var imageIndex: NSInteger = 0