Skip to content Skip to sidebar Skip to footer

Ios 4.2 Uiwebview Javascript Window.print Doesn´t Print, Not Launch Before And After Events

I´m using a uiwebview for doing an embedded web app, with the new iOS 4.2 you can print directly with objective-C, but I want to print from javascript in HTML. The problem is that

Solution 1:

As far as I can tell, window.print() does nothing when running the code in a UIWebView. You need to write some native Objective-C to run UIViewPrintFormatter against your UIWebView, or send the user to Safari.


Post a Comment for "Ios 4.2 Uiwebview Javascript Window.print Doesn´t Print, Not Launch Before And After Events"