I'm trying to render an image in the background of a UIView in Interface Builder. For some reason, however, the UIImage object is nil. I've checked my Build Settings to make sure the picture it represents is copied into the target, and the image file appears to be in the same directory & group as my source code.
Here's my code:
Here's my code:
Code:
var image = UIImage(named: "string")
override func prepareForInterfaceBuilder() {
image!.drawInRect(self.bounds) // breakpoint here, where I see that image is nil
}