Created
June 30, 2015 20:54
-
-
Save schifano/6878e4e44402f4fb07d6 to your computer and use it in GitHub Desktop.
PlaySoundsViewController.swift - Pitch Perfect - Read one mp3 file rather than a recorded file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if var filePath = NSBundle.mainBundle().pathForResource("movie_quote", ofType: "mp3") { | |
// Convert string to NSURL | |
var filePathURL = NSURL.fileURLWithPath(filePath) | |
} else { | |
println("File not found") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment