Skip to content

Instantly share code, notes, and snippets.

@manchan
Created July 24, 2015 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manchan/3fd845b139646efc8a7b to your computer and use it in GitHub Desktop.
Save manchan/3fd845b139646efc8a7b to your computer and use it in GitHub Desktop.
BlurEfeect iOS8
self.navBgEffectView = UIVisualEffectView(effect: UIBlurEffect(style: UIBlurEffectStyle.ExtraLight))
self.navBgEffectView!.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height / 2)
// effectView.layer.position = CGPointMake(mySegcon.bounds.midX, -(effectView.frame.midY + 20) )
self.navBgEffectView!.alpha = 0.0
self.navBgEffectView!.layer.masksToBounds = true
self.navBgImgView?.addSubview(self.navBgEffectView!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment