Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction func onPlayPressed(sender: AnyObject) {
- start()
- isHidden = !isHidden
- UIView.animateWithDuration(0.3) { () -> Void in
- self.setNeedsStatusBarAppearanceUpdate()
- }
- self.navigationController?.hidesBarsOnTap = false
- self.navigationController?.setNavigationBarHidden(true, animated: true)
- override func viewWillDisappear(animated: Bool) {
- synth.pause()
- vox.pause()
- isHidden = true
- UIView.animateWithDuration(0.3) { () -> Void in
- self.setNeedsStatusBarAppearanceUpdate()
- }
- self.navigationController?.hidesBarsOnTap = false
- self.navigationController?.setNavigationBarHidden(true, animated: true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement