uiblureffect

How to remove blur view for particular cell?

江枫思渺然 提交于 2019-12-13 03:14:41
问题 I am using UITabBarController & UITableView My goal is to remove blur view for particular cell. Yes there is a way to add/remove UIBlurEffect to all the cell & bottom-Tabbbar But of-course don't want this at all . For reference i am attaching screenshot 回答1: What you are asking is to add Blur view to full screen except target cell. as tableivew resues cell so you have only option left is You can take screenshot of particular cell Here is code sample Swift 3 - How to take a screenshot of

How can I add blur with 2pt of radius in Swift?

早过忘川 提交于 2019-12-12 03:50:35
问题 I want to create something like that: I've tried this one: var blurEffect = UIBlurEffect(style: UIBlurEffectStyle.Dark) var blurEffectView = UIVisualEffectView(effect: blurEffect) blurEffectView.frame = view.bounds view.addSubview(blurEffectView) but this creates very dark blur. But I need exactly dark blur(black color) with 2pt of radius. Can I achieve that in Swift? 回答1: You can't control the radius of the blur of a UIVisualEffectView . You can achieve what you want by snapshotting the view

Text Blur with UICOllectionview cell

我只是一个虾纸丫 提交于 2019-12-12 02:36:26
问题 I have collectionView Cell In that i have this text,I want to blur the text as shown in image. I have tried Using UIVisualEffect but i didnt get exact response. Code: UIGraphicsBeginImageContext(self.bounds.size); [self.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); //Blur the UIImage with a CIFilter CIImage *imageToBlur = [CIImage imageWithCGImage:viewImage.CGImage]; CIFilter

How to add blur effect into UIImage with Swift? [duplicate]

两盒软妹~` 提交于 2019-12-08 05:44:25
问题 This question already has answers here : Swift Gaussian Blur an image [closed] (2 answers) Closed 2 years ago . I'd like to add blur effect in UIimage, not UIImage View. I can add blur effect into uiimage view just like this: let blurEffect = UIBlurEffect(style: UIBlurEffectStyle.light) let blurEffectView = UIVisualEffectView(effect: blurEffect) blurEffectView.frame = img.bounds blurEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight] img.addSubview(blurEffectView) But, I really

Blur effect - Background UITextField

风格不统一 提交于 2019-12-06 15:04:09
问题 I use Swift 2 and Xcode 7. I would like to blur in the background of my UITextField. I have not found a property backgroundView . Only background (for background image) or backgroundColor . I would have come to add a view in background. But I do not know how to make a UITextField. Do you have a solution ? 回答1: You can only add some kind of view to make it a blur view. Now the problem is that textfields don't have a backgroundView property but they do have a background property where we can

Blur UIImage to achieve effect like passcode blur of the wallpaper with swift

爷,独闯天下 提交于 2019-12-06 12:52:31
问题 I want to achieve the effect that passcode view have (the wallpaper picture is blurred and darker) This give me a black screen func blurWithCoreImage(){ var inputImage = CIImage(image: UIImage(named: "wallpaper")); // Apply gaussian blur filter with radius of 30 var gaussianBlurFilter = CIFilter(name: "CIGaussianBlur"); gaussianBlurFilter.setValue(inputImage, forKey: "inputImage") gaussianBlurFilter.setValue(30, forKey: "inputRadius") var context = CIContext(options:nil) var cgImage = context

How to add UIVibrancyEffect to an existing UILabel ( IBOutlet )?

狂风中的少年 提交于 2019-12-05 05:47:52
问题 I have a working ViewController with working UIBlurEffect. Here is my code: @IBOutlet weak var nameLabel: UILabel! override func viewDidLoad() { super.viewDidLoad() let blurEffect = UIBlurEffect(style: .Light) let blurView = UIVisualEffectView(effect: blurEffect) blurView.frame = self.view.frame blurView.setTranslatesAutoresizingMaskIntoConstraints(false) self.view.insertSubview(blurView, atIndex: 0) } Now I would like to add a UIVibranyEffect to the nameLabel. How to add UIVibrancyEffect

Blur effect - Background UITextField

点点圈 提交于 2019-12-04 21:10:28
I use Swift 2 and Xcode 7. I would like to blur in the background of my UITextField. I have not found a property backgroundView . Only background (for background image) or backgroundColor . I would have come to add a view in background. But I do not know how to make a UITextField. Do you have a solution ? You can only add some kind of view to make it a blur view. Now the problem is that textfields don't have a backgroundView property but they do have a background property where we can set an UIImage . So we can make a UIImage from a UIView too This method will create a UIImage for the UIView

Unity3D : Blur the background of a UI canvas

跟風遠走 提交于 2019-12-04 20:31:30
问题 I'm trying to reproduce the (now common famous) blur effect on the background of a UI window for my game in Unity3D. One of the best examples I can think of right now is Heroes Of The Storm, notice how the background of the Level Up panel blurs what's behind it : Is there any way to reproduce the same effect with the recently-added Canvas in Unity3D? I know there is a way to do so by using a camera, but I'm not really familiar with the whole thing, especially when it comes to making it work

Blur UIImage to achieve effect like passcode blur of the wallpaper with swift

▼魔方 西西 提交于 2019-12-04 19:27:53
I want to achieve the effect that passcode view have (the wallpaper picture is blurred and darker) This give me a black screen func blurWithCoreImage(){ var inputImage = CIImage(image: UIImage(named: "wallpaper")); // Apply gaussian blur filter with radius of 30 var gaussianBlurFilter = CIFilter(name: "CIGaussianBlur"); gaussianBlurFilter.setValue(inputImage, forKey: "inputImage") gaussianBlurFilter.setValue(30, forKey: "inputRadius") var context = CIContext(options:nil) var cgImage = context.createCGImage(gaussianBlurFilter.outputImage, fromRect: inputImage.extent()) // Set up output context.