Guest User

Untitled

a guest
Feb 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. .
  2. .
  3. .
  4. theSoundManager = [[SMSoundManager alloc]init];
  5. [[CPNotificationCenter defaultCenter] addObserver:self selector:@selector(songDidFinishPlaying:) name:"SongEnded" object:theSoundManager];
  6. [[CPNotificationCenter defaultCenter] addObserver:self selector:@selector(setTime:) name:"pos" object:theSoundManager];
  7. local=true;
  8.  
  9. }
  10. return self;
  11. }
  12.  
  13. - (void)songDidFinishPlaying:(CPNotification)aNotification{
  14. console.log("Song finished playing");
  15. ...
  16. }
  17.  
  18. -(void)setTime:(CPNotification)aNotification{
  19. console.log("Got to setTime");
  20. ...
  21. }
  22. .
  23. .
  24. .
Add Comment
Please, Sign In to add comment