UIWebViewDelegate

  1. 7 months ago

    Jim M

    6 Feb 2019 Pre-Release Testers, Xojo Pro

    Is any using Jason King's UIWebViewDelegate?

    I have been unable to get it to work with 2018r4 & iOS 12.... and I do not see what the problem might be.... the app crashes when trying to setDelegate.

    Thanks,
    Jim

  2. Jason P

    6 Feb 2019 Xojo Inc Texas

    Hi Jim-

    Probably the exact same issue as in this thread:

    https://forum.xojo.com/conversation/post/422673

    The underlying class is no longer a UIWebView so the delegate is no longer the right type either.

  3. Jim M

    6 Feb 2019 Pre-Release Testers, Xojo Pro

    Hi Jason....

    Yes, that looks like the issue.

    Thanks

  4. Jason T

    6 Feb 2019 Pre-Release Testers, Xojo Pro Sydney, Australia
    Edited 7 months ago

    @James M you can use the replacement HTMLViewerExtensionsXC , compatible with WKWebView, from @Jeremie L here: iOSDesignExtensions

  5. Jim M

    7 Feb 2019 Pre-Release Testers, Xojo Pro

    @Jason T @James M you can use the replacement HTMLViewerExtensionsXC , compatible with WKWebView, from @Jeremie L here: iOSDesignExtensions

    Thanks I will check that out.

  6. Jeremie L

    8 Feb 2019 Pre-Release Testers, Xojo Pro, XDC Speakers Europe (France) - getpackr.io

    Well actually HTMLViewerExtensionsXC from iOSDesignExtensions has different features than the UIWebViewDelegate

    You can find WKNavigationDelegate here: https://github.com/jkleroy/iOSKit

  7. Jim M

    8 Feb 2019 Pre-Release Testers, Xojo Pro

    OK... thanks.

  8. 6 months ago

    Jim M

    9 Mar 2019 Pre-Release Testers, Xojo Pro

    In the built app when I try to display a "local" html page the Error event on WKNavigationDelegate fires and I get "The operation couldn’t be completed. Operation not permitted".

    By "local" I mean a file located in "SpecialFolder.Documents".... and using folderitem.URLPath.... so it looks something like:

    file:///var/mobile/Containers/Data/Application/2332332.../Documents/HTMLFiles/index.html

    The Error event does not fire when I run in the debugger/simulator.... it works as expected.

    Is there anyway to get it to load that local file?

    Thanks

  9. Jeremie L

    9 Mar 2019 Pre-Release Testers, Xojo Pro, XDC Speakers Europe (France) - getpackr.io

    See here https://forum.xojo.com/52439-ioshtmlviewer-loadurl-only-working-in-simulator

  10. Jim M

    9 Mar 2019 Pre-Release Testers, Xojo Pro

    Thanks... that is working.

or Sign Up to reply!