我刚刚添加了canvas pod(通过cocoapods),我可以在我的工作区中很好地看到文件,并且我能够将Canvas“导入”到我的ViewController.swift中。但我收到一个语义构建时间错误,文件 CSAnimationView.m 可能缺少方法 [super awakeFromNib][errorscreenshot] 1
/*
* This file is part of the Canvas package.
* (c) Canvas <usecanvas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import "CSAnimationView.h" @implementation CSAnimationView
- (void)awakeFromNib {
if (self.type && self.duration && ! self.pauseAnimationOnAwake) {[self startCanvasAnimation];
}
}
- (void)startCanvasAnimation {
Class <CSAnimation> class = [CSAnimationclassForAnimationType:self.type];
[class performAnimationOnView:self duration:self.durationdelay:self.delay];
[super startCanvasAnimation];
}
@end