import UIKit
class ViewController: UIViewController {
@IBOutlet weak var backgroundImage: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
var blur = UIBlurEffect(style: .Dark)
var blurView = UIVisualEffectView(effect: blur)
blurView.frame = CGRectMake(0, 0, 400, 320)
self.view.addSubview(blurView)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
/
}
}
The Problem I'm facing:
The UIVisualEffectView with the Dark Style Blur Effect, which I added to the view programatically (as shown above), renders perfectly on all devices smaller than the iPhone 6. However, on the 6 and 6 Plus the UIVisualEffectView is entirely black when I build and run on the iOS simulator. I need to finish my app project by the end of this week and this is the only aspect of the app which isn't completely functional so any advice would be greatly appreciated! Thanks!