A Cordiva error CDVViewController gives 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'

I want to create my own iOS application with the "Jib" element of the WebView, but when compiling in the simulator I get an error with the error:

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]' 

This is my ViewDidLoad code

 - (void)viewDidLoad { [super viewDidLoad]; CDVViewController* viewController = [CDVViewController new]; viewController.view.frame = CGRectMake(0, 40, 320, 450); [self.view addSubview:viewController.view]; } 
0
source share
1 answer

I got the same error. This is not a solution, but I got a CDVViewController working using an earlier version of PhoneGap (2.4.0) without problems.

0
source

Source: https://habr.com/ru/post/1483427/


All Articles