Topics
Published on January 16, 2018 by CodeWithChris

We’re at the final stretch! The last thing to make this game pop is to add sounds to it.

Sound files:
codewithchris.com/code/Module03Lesson11Sounds.zip

You’ll learn how to include these sounds into your Xcode project and use the AVAudioPlayer class to play them!

We’ll also randomize the cards and add code so that only unique pairs are included in our set of cards.

This video series builds upon (and requires) the skills learned in these two playlists (So please watch these first if you haven’t already!):

How To Make an App for Beginners:

Build Your Swift Skills:

My Courses:
codewithchris.com/beginnercourse/

Twitter:
twitter.com/CodeWithChris

Reddit:
www.reddit.com/r/CodeWithChris

———————————-

This video series uses the latest and greatest from Apple (Xcode 9, Swift 4, iOS 11) and will teach a beginner with no programming experience how to make iPhone apps. I’m creating these videos with the assumption that the student has no prior knowledge and is starting from scratch.

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you’ll find a community of like minded learners! Learning something new is always more fun with other people!

CodeWithChris is dedicated to teaching beginners and non-programmers all about how to make an app. On the site, you’ll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift 4, Xcode 9 and app building from my course and materials!

Here’s just a sample of the success stories my students have sent in:

68 Beginners Share Their Success Stories

Leave a Reply

15 Comments on "How To Build a Match Game – Lesson 11 (Sounds)"

Notify of
avatar

Ali Mostafa
Guest
Ali Mostafa
26 days 3 minutes ago

thanks a lot, man, but I created a launch screen but don't know how to put a delay on the launch screen.

Mk Berou
Guest
Mk Berou
27 days 22 hours ago

Thank you for the  amazing tutorials but I need a bit of helpfunc showPopUp(_ title:String, message:String) {             let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)             let alertAction = UIAlertAction(title: "Play Again!", style: .default){action in self.playAgain()} alert.addAction(alertAction)             present(alert, animated: true, completion: nil)             } func playAgain() {             print("PlayAgain Was pressed")            } How to make that pressing on the UIAlertAction allow the player to be able to play again?

Minh Le Hong
Guest
Minh Le Hong
29 days 6 hours ago

I use swapAt method to swap element in generatedCardsArray randomly:         for i in 0…generatedCardsArray.count – 1 {            let randomNum = Int(arc4random_uniform(UInt32(generatedCardsArray.count)))            generatedCardsArray.swapAt(i,randomNum )}

John Vincent
Guest
John Vincent
30 days 18 hours ago

Chris? My console output sth like this after I run the app. 2018-01-18 08:20:30.545097+0800 MatchApp[7642:488449] [aqme] 177: timed out after 0.012s (77 78); suspension count=0 (IOSuspensions: )Anything I should be worrying about?

CodeWithChris
Guest
CodeWithChris
30 days 15 hours ago

Nope just noise!

Ryan Bolton
Guest
Ryan Bolton
1 month 2 hours ago

I have some bugs like 3 cards are the same

mehdi abdi
Guest
mehdi abdi
1 month 13 hours ago

Hi Chris I want to say thank you for whole of  amazing tutorials , And also we need more tutorials 😉. Thank you.

Jared Pratt
Guest
Jared Pratt
1 month 15 hours ago

Keep up the good work chris! It will take several days for me to be able to digest this one! Tons of excellent content!

Emily Anne
Guest
Emily Anne
1 month 1 day ago

Could you link the sound files?Thanks for all the great videos!

Emily Anne
Guest
Emily Anne
1 month 22 hours ago

Thanks! Your tutorials have been very helpful, looking forward to more great content in the future!!

CodeWithChris
Guest
CodeWithChris
1 month 23 hours ago

Just added the link to the description! Thanks!

John Vincent
Guest
John Vincent
1 month 1 day ago

There is no sound zip file for us to download. Can you put the link in the description?

CodeWithChris
Guest
CodeWithChris
30 days 4 hours ago

Oops, i just fixed the link! Here it is: codewithchris.com/code/Module03Lesson11Sounds.zip

Minh Le Hong
Guest
Minh Le Hong
30 days 4 hours ago

Hi Chris, the link of sound files is codewithchris.com/lesson/module-2-introduction/, I could not download, it asked for purchase the course….Or am I going to the wrong link? Thank you for reading

CodeWithChris
Guest
CodeWithChris
1 month 23 hours ago

Just added the link to the description! Thanks!

wpDiscuz