Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .
- .
- .
- theSoundManager = [[SMSoundManager alloc]init];
- [[CPNotificationCenter defaultCenter] addObserver:self selector:@selector(songDidFinishPlaying:) name:"SongEnded" object:theSoundManager];
- [[CPNotificationCenter defaultCenter] addObserver:self selector:@selector(setTime:) name:"pos" object:theSoundManager];
- local=true;
- }
- return self;
- }
- - (void)songDidFinishPlaying:(CPNotification)aNotification{
- console.log("Song finished playing");
- ...
- }
- -(void)setTime:(CPNotification)aNotification{
- console.log("Got to setTime");
- ...
- }
- .
- .
- .
Add Comment
Please, Sign In to add comment