「ユーザーがiOS6.0を実行しているiPhone4とiPad(第3世代)の両方でメインメニューの最後のボタンを選択すると、アプリがクラッシュする」と彼らは言った。
もちろんテストしましたが、すべて問題ありません。次のコードは間違っていますか?
NSDictionary *soundSetting;
soundSetting = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithFloat: 44100.0],AVSampleRateKey,
[NSNumber numberWithInt: kAudioFormatMPEG4AAC],AVFormatIDKey,
[NSNumber numberWithInt: 2],AVNumberOfChannelsKey,
[NSNumber numberWithInt: AVAudioQualityHigh],
AVEncoderAudioQualityKey,nil];
NSString *docDir = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES)objectAtIndex: 0];
//Spades
soundFileURLSpades = [NSURL fileURLWithPath:[docDir
stringByAppendingString: @"soundSpades.caf"]];
self.audioRecorderSpades = [[AVAudioRecorder alloc]
initWithURL: soundFileURLSpades
settings: soundSetting
error: nil];