AVAudioRecorder
Record VC
func audioRecorderDidFinishRecording(_ recorder: AVAudioRecorder, successfully flag: Bool){
if flag {
performSegue(withIdentifier: "stopRecording", sender: audioRecorder.url)
} else {
print("recording was not successful")
}
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?){
if segue.identifier == "stopRecording"{
let laySoundsVC = segue.destination as! PlaySoundsViewController
let recordedAudioURL = sender as! url
playSoundVC.recordedAudioURL = recordedAudioURL
}
}
Stack Views: Horizontal, Vertical
-alignment, distribution, spacing
AVAudioEngine
var dollars:Int = 10
var cents:Int = 50
var amount = "$\(dollars).\(cents)"
print(amount)
dollars = 19
centsd = 99
amount = "$\(dollars).\(cents)"
print(amout)
func printMoneyString(dollars:Int, cents:Int){
print("$\(dollars).\(cents)")
}