I want to record some thing in my app and post it to some API. Please help
Asked
Active
Viewed 1,097 times
2 Answers
2
You can follow this link for recording and saving audio in local iPhone storage (ex: Document Directory).
Record audio file and save locally on iPhone
Once you saved it you can convert file content as NSData
NSDate *audioData = [NSData dataWithContentsOfFile:audioFilePath];
// audioFilePath is the path of audio either from document
// directory or any other location.

Mundi
- 79,884
- 17
- 117
- 140

Mohd Khalil Ur Rehman
- 151
- 1
- 3
1
This simple tutorial might help you
https://www.appcoda.com/ios-avfoundation-framework-tutorial/
Once you are done recording then you have to choose do you want
AFNetworking or NSURLConnection
to send the audio to the server

gurmandeep
- 1,227
- 1
- 14
- 30