Hello,
This is my solution:
1) Setbackground for UIView.
2) Setbackground for TableView, TableViewCell is ClearColor.
PS: extension function
import UIKit
extension UIView {
func addBackground(imageName:String) {
/
let width = UIScreen.mainScreen().bounds.size.width
let height = UIScreen.mainScreen().bounds.size.height
let imageViewBackground = UIImageView(frame: CGRectMake(0, 0, width, height))
imageViewBackground.image = UIImage(named: imageName)
/
imageViewBackground.contentMode = UIViewContentMode.ScaleAspectFill
self.addSubview(imageViewBackground)
self.sendSubviewToBack(imageViewBackground)
}
}