我遇到了找不到文件的错误.
我已经添加了所有必需的文件,但它找不到文件的文件.
#import "MagickWand.h"
Run Code Online (Sandbox Code Playgroud)
对于上面的文件,它给出错误.
#import "FrameSection.h"
#import "FreeCropIphone5.h"
#import "DoodleView.h"
Run Code Online (Sandbox Code Playgroud)
请帮我.
我正在使用此代码来检测打击.
但我不能受到打击.我有声音
NSURL *url = [NSURL fileURLWithPath:@"/dev/null"];
NSDictionary *settings = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithFloat: 44100.0], AVSampleRateKey,
[NSNumber numberWithInt: kAudioFormatAppleLossless], AVFormatIDKey,
[NSNumber numberWithInt: 1], AVNumberOfChannelsKey,
[NSNumber numberWithInt: AVAudioQualityMax], AVEncoderAudioQualityKey,
nil];
NSError *error;
recorder = [[AVAudioRecorder alloc] initWithURL:url settings:settings error:&error];
if (recorder) {
[recorder prepareToRecord];
recorder.meteringEnabled = YES;
[recorder record];
levelTimer = [NSTimer scheduledTimerWithTimeInterval: 0.3 target: self selector: @selector(levelTimerCallback:) userInfo: nil repeats: YES];
} else
NSLog(@"error %@",[error description]);
Run Code Online (Sandbox Code Playgroud)
但声音没有打击.