Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. override func viewDidLoad() {
  2. super.viewDidLoad()
  3.  
  4. NotificationCenter.default().addObserver(self, selector: #selector(self.downloadAudioVisualItem), name: NSNotification.Name.AVPlayerItemNewAccessLogEntry, object: nil)
  5. }
  6.  
  7. func downloadAudioVisualItem() {
  8. print("Hello")
  9. }
  10.  
  11. override func viewDidDisappear(_ animated: Bool) {
  12. super.viewDidDisappear(false)
  13.  
  14. NotificationCenter.default().removeObserver(self)
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement