Recording audio in iOS: Problem finding recorded audio
I was working with recording in iOS and I came across a rather strange problem with re-playing the recordings. What would happen was, I would record the audio, playback the recording, save the audio file and it would all work as expected. Now when I try to relaunch/redeploy the app from Xcode and try to playback the previously recorded file, it wouldn't work, the problem was that it cannot find the audio recording. As usual I have solved that problem and while I am not sure if it is the right way to do this, but my solution works and I am going to share that solution in this post along with some code samples. Hopefully it saves the next programmer stuck on this problem some time. Introduction I wanted to learn how to record audio in iOS using the microphone so as usual I did a search on Google for tutorials on these and I found some excellent examples on it. Among others the tutorial at HackingWithSwift was one of the finest tutorials out there. Unfortunately the...