In my iPhone application, I have the following hierarchy:
UITabBarController ->
UINavigationController ->
UIViewController<UIWebViewDelegate> ->
UIWebView
(jQuery Mobile-page)
In the UIViewControllers navigation element, I added a button whose action selector is the goBack function of UIWebViews. When the button is clicked, everything goes according to plan - the UIWebView moves backward (including fancy jQuery Mobile transitions).
The problem is that since jQuery Mobile uses some “internal binding” when navigating to different pages (adding # URL / newPage / url.html to the URL), the UIWebViewDelegate webViewDidStartLoad function is never called when the same page is loaded inside jQuery Mobile enabled site.
Anyone with suggestions on how to get a jQuery Mobile page to disable the delegate function? Perhaps with supported transitions. If this is not possible, does anyone have any suggestions for any other “web application infrastructure” capable of this (delegate calls + transitions)?
Thank!
UPDATE
My question may be almost the same as https://stackoverflow.com/a/3129609/ ... but I at least think mine is a bit more specific. If you do not agree, leave a comment :)
source
share