0

i try to record the voice file in aac type and show in uitable and work good but i can not showing in itunes file sharing

I activated the UIFIleSharingEnabled

but i can not look the aac file in itunes file sharing what can i do ?

file format AudioformatMPEG4AAC

fileaddres : file://localhost/Users/myuser/...aac

Save part

NSArray *keys = [NSArray arrayWithObjects:@"voicestr",,@"datestr",@"durstr",nil];

NSDictionary * HistDict =[[NSDictionary alloc] initWithObjects: [NSArray arrayWithObjects:myString,timeString,dateString,currentimeLbl.text,bestsize ,nil] forKeys:keys];

[Hist addObject:HistDict];

load file

 BOOL fileExists = [[NSFileManager defaultManager] fileExistsAtPath:myPath];if (fileExists) 
    HistValue = [[NSMutableArray alloc] initWithContentsOfFile:myPath];

1 Answers1

1

You get the document directory for iOS with this method:

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString *basePath = [paths objectAtIndex:0] 

Add the File name

NSString *fielWithPath = [basePath stringByAppendingPathComponent:@"fileNaem"];

And you have to enable file sharing in the info.plist

UIFileSharingEnabled = YES
Holger
  • 581
  • 5
  • 10