开发者

Saving an audio file in documents directory with the iphone

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜