Changes

Jump to: navigation, search

Recording Audio on iOS 7 with AVAudioRecorder

12 bytes added, 20:42, 1 February 2016
m
Text replacement - "<google>BUY_IOS7</google>" to "<htmlet>ios9_upgrade</htmlet>"
<googlehtmlet>BUY_IOS7ios9_upgrade</googlehtmlet>
When the application is first launched, an instance of the AVAudioRecorder class needs to be created. This will be initialized with the URL of a file into which the recorded audio is to be saved. Also passed as an argument to the initialization method is an NSDictionary object indicating the settings for the recording such as bit rate, sample rate and audio quality. A full description of the settings available may be found in the appropriate Apple iOS reference materials.
<googlehtmlet>BUY_IOS7ios9_upgrade</googlehtmlet>
As is often the case, a good location to initialize the AVAudioRecorder instance is the viewDidLoad method of the view controller located in the RecordViewController.m file. Select the file in the project navigator, locate this method and modify it so that it reads as follows:
<googlehtmlet>BUY_IOS7ios9_upgrade</googlehtmlet>

Navigation menu