Chris
Chris

Reputation: 2747

iOS8 UIPrintPageRenderer hangs

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

Upvotes: 6

Views: 728

Answers (2)

Dima Cheverda
Dima Cheverda

Reputation: 402

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

Upvotes: 2

DCG
DCG

Reputation: 181

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.

Upvotes: 4

Related Questions