uiblureffect

Less Blur with `Visual Effect View with Blur`?

冷暖自知 提交于 2019-11-30 01:34:45
Title pretty much asks it all... I'm playing with the iOS8 Visual Effect View with Blur . It's over a UIImageView that shows a user choosable background photo. The view placed in the contentView itself is my own custom view, shows a sort of graph/calendar. Most of said calendar graph is transparent. The blur it applies to the photo behind it is really heavy. I'd like to let more of the detail leak through. But Apple only seems to give three canned values: typedef enum { UIBlurEffectStyleExtraLight, UIBlurEffectStyleLight, UIBlurEffectStyleDark } UIBlurEffectStyle; I've monkied around with

Less Blur with `Visual Effect View with Blur`?

那年仲夏 提交于 2019-11-28 22:23:59
问题 Title pretty much asks it all... I'm playing with the iOS8 Visual Effect View with Blur . It's over a UIImageView that shows a user choosable background photo. The view placed in the contentView itself is my own custom view, shows a sort of graph/calendar. Most of said calendar graph is transparent. The blur it applies to the photo behind it is really heavy. I'd like to let more of the detail leak through. But Apple only seems to give three canned values: typedef enum {

How to fade a UIVisualEffectView and/or UIBlurEffect in and out?

北城以北 提交于 2019-11-28 15:33:37
I want to fade a UIVisualEffectsView with a UIBlurEffect in and out: var blurEffectView = UIVisualEffectView() blurEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .dark)) I use a normal animation within a function called by a UIButton to fade it in, same for fading out but .alpha = 0 & hidden = true : blurEffectView.hidden = false UIView.animate(withDuration: 1, delay: 0, options: .curveEaseOut) { self.blurEffectView.alpha = 1 } Now, fading in both directions does work but it gives me an error when fading out : <UIVisualEffectView 0x7fdf5bcb6e80> is being asked to animate its

Check if device supports blur

北城余情 提交于 2019-11-27 06:55:09
问题 My app uses UIBlurEffect , however older devices (specifically iPads 2 and 3, that support iOS 8) don't have blur support. I'd like to check if the user's device has blur support or not. How do I do it? 回答1: UIDevice has an internal method [UIDevice _graphicsQuality] that seems promising, but of course your app will be rejected by Apple. Let's create our own method: First of all, we need to know the exact device type we're working on: #import <sys/utsname.h> NSString* deviceName() { struct