Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. @IBAction func onPlayPressed(sender: AnyObject) {
  2. start()
  3.  
  4.  
  5. isHidden = !isHidden
  6. UIView.animateWithDuration(0.3) { () -> Void in
  7. self.setNeedsStatusBarAppearanceUpdate()
  8.  
  9. }
  10. self.navigationController?.hidesBarsOnTap = false
  11. self.navigationController?.setNavigationBarHidden(true, animated: true)
  12.  
  13. override func viewWillDisappear(animated: Bool) {
  14. synth.pause()
  15. vox.pause()
  16.  
  17. isHidden = true
  18. UIView.animateWithDuration(0.3) { () -> Void in
  19. self.setNeedsStatusBarAppearanceUpdate()
  20.  
  21. }
  22. self.navigationController?.hidesBarsOnTap = false
  23. self.navigationController?.setNavigationBarHidden(true, animated: true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement