我想使用“Cleaver”元素 WebView 创建本机 ios 应用程序,但在模拟器中编译时出现崩溃并出现错误:
Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'
这是我的代码 ViewDidLoad
- (void)viewDidLoad
{
[super viewDidLoad];
CDVViewController* viewController = [CDVViewController new];
viewController.view.frame = CGRectMake(0, 40, 320, 450);
[self.view addSubview:viewController.view];
}