Defining the file a UIImage will use (Swift)

Even though you are using Swift, all the classes that come from UIKit and other libraries still are written in Objective-C.

There is no difference in the interfaces to these libraries, just the syntax.

In this case, you need to use the object construction syntax:

var image = UIImage(named:"ImageName")

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)