Created
June 9, 2015 10:54
-
-
Save MickaelCruzDB/74d342beb451977fb36f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A: NSViewController { | |
extension NSView { | |
func bringSubviewToFront(view: NSView) { | |
view.removeFromSuperview() | |
self.addSubview(view) | |
} | |
} | |
var bgMovie: AVPlayerView = AVPlayerView() | |
var fileName: String = "Water_Demand_Forecasting" | |
@IBOutlet var player: AVPlayerView! | |
@IBOutlet var ZButton: NSButton! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
playVideo(player, fileName: "Water_Demand_Forecasting") | |
} | |
override func viewWillAppear() { | |
player.bringSubviewToFront(ZButton) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment