开发者

Saving an audio file in documents directory with the iphone

开发者 https://www.devze.com 2022-12-19 17:13 出处:网络
I want to develop an iphone application where I have to开发者_Python百科 save the audio file and later mail it.

I want to develop an iphone application where I have to开发者_Python百科 save the audio file and later mail it.

Can you give me some idea regarding this like the format in which it should be saved so that it can be played later anytime and also mailed?

Please let me know the step wise process or any sample code would be helpful.


Apple has a nice example (called Speakhere) to record and save audio files: http://developer.apple.com/iphone/library/samplecode/SpeakHere/index.html

In order to send e-mail:

Follow Jasarien's post.


The Apple Example suggested by Ahmet is a good reference for recording and saving the sound clip.

To email it, look at the documentation for the MessageUI framework. The class you'll want to use is MFMailComposerViewController.

You can use that class to set recipients, subject, body and attatchments.

0

精彩评论

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

关注公众号