xcode 给了我这个错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MPVolumeView", referenced from:
objc-class-ref in VolumeViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这是 viewcontroller 的 viewDidload。
- (void)viewDidload{
[super viewDidUnload];
MPVolumeView *volumeView = [[[MPVolumeView alloc] initWithFrame:CGRectMake(0, 0, 200, 20)] autorelease];
volumeView.center = CGPointMake(160,134);
[volumeView sizeToFit];
volumeView.showsVolumeSlider=YES;
[self.view addSubview:volumeView];
}
我进口:
#import <MediaPlayer/MPVolumeView.h>
可能是什么错误?