xcode - iOS Swift 定义UIImage变量出错
巴扎黑
巴扎黑 2017-04-18 09:55:40
0
4
554



请问我这样定义一个UIImage变量为什么会出错?

巴扎黑
巴扎黑

reply all(4)
刘奇

The picture name already contains a picture, right?
You can do it directlyvar iv : UIImage = 图片

洪涛

You have not modified the content of the "" part in (named: ""). Just change it to the name of the image you want (in the image asset or main bundle).

迷茫

Using Xcode’s image auto-completion function returns a UIImage, so there is no need to use the UIImage constructor

DirectVar iv: UIImage = 图片

PHPzhong

Please add that you need to upgrade to Swift 3 to use this feature

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template