xcode6 - How to add a image in background in my view in swift? -
I am trying to add an image background to my view, the controller of my SWIFT app, but the color is not available with the color. Are there other forms for it or is it necessary to add it to an image?
I am trying to create it with this code:
imageName = "image.png" give self.view background color = UIColor.colorWithPatternImage (UIImage (Named: imageName)) Thanks!
Comments
Post a Comment