问题
I have some visual effect views with blur and vibrancy in one of my view controllers. I have labels working correctly with vibrancy, but every time i try to add a UIButton to the view, the text appears to be transparent, and the background of the button appears to have vibrancy. I am looking for the effect the "Edit" button has in notification center. I have attached some photos for reference.
What I want:
What is happening:
If there is no way to accomplish this in IB, can it be done with code? I am using Swift.
EDIT
Now here is what happening, it appears with vibrancy, but the text is not dark:
回答1:
You can place your button above the view with vibrancy effect (view must have the same frame as your button).
Take a look:
来源:https://stackoverflow.com/questions/29820444/vibrancy-effect-on-uibutton-in-interface-builder