iPad apps for 6-8 years old kids : This is my latest iPad project called Oh Mommy - Musical Storybook.

Wednesday, December 7, 2011

iOS : How to stop a background music with only one button?

At last, one of the forumer has helped me to troubleshoot the Xcode's code.

Here is the solution :

- (IBAction)toggleMusic{
if ([self.player isPlaying] == YES) {
[self.player stop];
} else {
[self.player play];
self.playBgMusic.enabled = YES;

Another journey to go. How to link to XIB file in Xcode4 ?

No comments:

Singing Book for Kids

Singing Book for Kids
ipad apps for kids