Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func viewDidLayoutSubviews() {
- // Add the logo hd background image and apply blur effect
- // in viewDidLayoutSubviews, the blur effect is correctly done after changing the orientation of the iPhone
- let backgroundImage = UIImage(named: "logo-hd")
- let imageView = UIImageView(image: backgroundImage)
- self.tableView.backgroundView = imageView
- tableView.backgroundView?.contentMode = .scaleAspectFit
- let blurEffect = UIBlurEffect(style: UIBlurEffect.Style.light)
- let blurView = UIVisualEffectView(effect: blurEffect)
- blurView.frame = imageView.bounds
- imageView.addSubview(blurView)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement