ios 4.2 uiwebview javascript window.print doesn´t print, not launch before and after events

前端 未结 1 1678
半阙折子戏
半阙折子戏 2021-01-24 10:29

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 probl

相关标签:
1条回答
  • 2021-01-24 11:08

    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.

    0 讨论(0)
提交回复
热议问题