objective c - Xcode 6 Don't Apply Vibrant Effect to Child View -
good evening, everyone!
is possible apply "vibrant" visual effect parent view, without child view inheriting it?
my main window has vibrant effect applied entire view, when using popover segue display new view, view transparent. there way prevent this?
thanks!
you can set popover view's window appearance in controller's viewwillappear()
:
swift
override func viewwillappear() { self.view.window?.appearance = nsappearance(named: nsappearancenamevibrantdark) }
obj-c
- (void)viewwillappear { self.view.window.appearance = [nsappearance appearancenamed:nsappearancenamevibrantdark]; }
Comments
Post a Comment