ios - 没有可见的@iterface CDVViewController

标签 ios objective-c xcode cordova

以下代码给我“无可见@iterface CDVViewController”编译错误:

@implementation MainViewController (CDVViewController)
- (void)webViewDidFinishLoad:(UIWebView*)webView
{
    webView.backgroundColor = [UIColor clearColor];
    webView.opaque = NO;
     return [super webViewDidFinishLoad:webView];
}

@end

当我在为ios构建的应用程序中编译cordova-plugin-camera-preview时,会发生此错误。有任何想法吗?谢谢。

最佳答案

在您的 class 中导入语句

#import "CDVViewController.h"

关于ios - 没有可见的@iterface CDVViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37484372/

相关文章:

ios - Swift 2.2 - 更新 UILabel 抛出 "unexpectedly found nil while unwrapping an optional value"

ios - 显示模态 Controller 时与呈现 Controller 交互

ios - 从 nsarray 中删除一个对象将删除所有对象

ios - 本地化 Swizzling 使用选择器更改语言 swift4

ios - 再次触摸时如何删除scnplane?

ios - UIView 展开到里面的内容

objective-c - 数据源对象属于哪里? Controller 还是模型?

ios - UICollectionViewCell 显示错误的图像

ios - 没有这样的模块 'FBSDKLoginKit' Xcode 9

ios - Xcode/模拟器 : How to run older iOS version?