开发者

How to change AVAudioRecorder's record settings in another view controller?

I'm working on this iphone app that has a view controller to record some sound using AVAudioRecorder. I want to have another "sett开发者_StackOverflowing" view controller that can change the record settings (recording format, quality etc.). Is there a way to create a singleton object for AVAudioRecorder(something like [AVAudioRecorder sharedInstance]) so that I can refer to the same recorder object in another view controller?


The settings are stored in a dictionary. Have you considered creating and storing the settings in an NSDictionary, and passing that around to the code that actually starts the recording? You will probably need to init a new AVAudioRecorder every time you want to change the settings because the property is readonly; i.e., you can only change the settings when you init the recorder.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜