Published on

VMPlayer-MAC-iOS-UIVisualEffectView

I have been practising to develop on iOS with Swift.

And several days ago I found a great class named UIVisualEffectView which could make a blur effect as notification bar. I like it very much.

I have been trying to code with UIVisualEffectView for about one hour and get the great effect on the simulator, but when I connect my iPhone and run on it then I could never get the same effect as on the simulator.

Where is the problem?

After I google and baidu for about half an hour, I get the key point.

First, my setting has been disabled blur effect, so everyting is opaque. This document helps me. Get the transparent effect back on iPhone

Yes, it works for me!

Then another problem occurs: my app could not run as they are not relable. And this helps me out. untrusted developer on iOS9

After the two steps, I finally get the effect on my iPhone.

Hope this passage could save your time.