iOS8 UIPrintPageRenderer hangs

717 Views Asked by At

I'm using BNHtmlPdfKit to render Html to PDF. It worked great but in iOS8 it just hangs on

[renderer drawPageAtIndex:i inRect:renderer.paperRect];

To be honest I don't even know how to debug it - theres no error messages and you can keep pressing continue but just breaks at the same breakpoint. In the end it just times out.

Anyone got any ideas?

Cheers

2

There are 2 best solutions below

1
On

Make sure that you do not have exception breakpoints enabled in Xcode. That will cause the app to hang here. You can ignore the exception that occurs inside of the method call you listed above.

0
On

You can disable only an exception that is thrown by UIPrintPageRenderer called __cxa_throw and any other exception breakpoint will still work. enter image description here