Changes

Recording Audio on iOS 8 with AVAudioRecorder in Swift

27 bytes added, 21:03, 14 April 2015
no edit summary
NSSearchPathForDirectoriesInDomains(.DocumentDirectory,
.UserDomainMask, true)
let docsDir = dirPaths[0] as ! String
let soundFilePath =
docsDir.stringByAppendingPathComponent("sound.caf")
audioRecorder = AVAudioRecorder(URL: soundFileURL,
settings: recordSettingsas [NSObject : AnyObject], error: &error)
if let err = error {