You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I open a PDF in iOS, my Debug Console get a lot of Errors.
It is always the same Error:
CGContextAddLineToPoint: no current point.
CGContextClosePath: no current point.
Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem._
If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.
I start looking for the error and find something from StackOverflow. I tried it out and this fix it.
- (instancetype)initWithFrame:(CGRect)frame
arguments:(id _Nullable)args
controler:(nonnull FLTPDFViewController *)controler {
if ([superinit]) {
_controler = controler;
// Adding this CGRect instead of frame solved the problemCGRect rect = CGRectMake(0, 0, 100, 100);
_pdfView = [[PDFViewalloc] initWithFrame: rect];
_pdfView.delegate = self;
The text was updated successfully, but these errors were encountered:
When I open a PDF in iOS, my Debug Console get a lot of Errors.
It is always the same Error:
I start looking for the error and find something from StackOverflow. I tried it out and this fix it.
The text was updated successfully, but these errors were encountered: