我添加一個框架沒有找到當我點擊鏈接框架上的'+'&圖書館我想添加一個音頻工具箱框架和核心音頻如何添加這兩個frameworks.as他們不在圖書館請幫助我。框架沒有找到當我點擊鏈接框架和庫上的'+'
NSArray *pathComponents = [NSArray arrayWithObjects:
[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject],
@"MyAudioMemo.m4a",
nil];
NSURL *outputFileURL = [NSURL fileURLWithPathComponents:pathComponents];
// Setup audio session
AVAudioSession *session = [AVAudioSession sharedInstance];
[session setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
// Define the recorder setting
NSMutableDictionary *recordSetting = [[NSMutableDictionary alloc] init];
[recordSetting setValue:[NSNumber numberWithInt:kAudioFormatMPEG4AAC] forKey:AVFormatIDKey];
[recordSetting setValue:[NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey];
[recordSetting setValue:[NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey];
// Initiate and prepare the recorder
recorder = [[AVAudioRecorder alloc] initWithURL:outputFileURL settings:recordSetting error:nil];
recorder.delegate = self;
recorder.meteringEnabled = YES;
[recorder prepareToRecord];
您的問題解決了沒有? – Vishal 2013-04-08 07:21:34
如果你沒有在你的XCode中找到這些框架,然後給我你的郵件ID我會給你發送這些框架,然後在XCode手動添加這些框架.... – Vishal 2013-04-08 07:23:53
@vishal嘿謝謝,但我刪除了這些框架,而不是刪除它們參考..現在很好...問題解決了 – Priyanka 2013-04-10 11:46:19