For recording a sound you have to add below code before the AVAudioRecorder is being alloc. EX. NSArray *dirPaths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask, YES); NSString *docsDir = [dirPaths objectAtIndex:0]; NSString *soundFilePath = [docsDir stringByAppendingPathComponent:@”tempsound.caf”]; NSURL *soundFileURL = [NSURL fileURLWithPath:soundFilePath];
First insert the below Classes in your project. -Reachability.h and .m -AFHTTPClient.h and .m -AFHTTPRequestOperation.h and .m -AFImageRequestOperation.h and .m -AFJSONRequestOperation.h and .m -AFJSONUtilities.h and .m -AFNetworkActivityIndicatorManager.h and .m -AFNetworking.h -AFPropertyListRequestOperation.h and .m -AFURLConnectionOperation.h and .m -AFXMLRequestOperation.h and .m