Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 强制UIWebView内的JQuery移动页面调用WebViewDidLoad_Iphone_Uiwebview_Jquery Mobile_Iphone Web App_Uiwebviewdelegate - Fatal编程技术网

Iphone 强制UIWebView内的JQuery移动页面调用WebViewDidLoad

Iphone 强制UIWebView内的JQuery移动页面调用WebViewDidLoad,iphone,uiwebview,jquery-mobile,iphone-web-app,uiwebviewdelegate,Iphone,Uiwebview,Jquery Mobile,Iphone Web App,Uiwebviewdelegate,在我的iPhone应用程序中,我有以下层次结构: UITabBarController -> UINavigationController -> UIViewController<UIWebViewDelegate> -> UIWebView (jQuery Mobile-page) UITabBarController-> UINavigationController-> UIViewController-> UIWebView (jQuer

在我的iPhone应用程序中,我有以下层次结构:

UITabBarController ->
 UINavigationController ->
  UIViewController<UIWebViewDelegate> ->
   UIWebView
    (jQuery Mobile-page)
UITabBarController->
UINavigationController->
UIViewController->
UIWebView
(jQuery移动页面)
在UIViewControllers navigationItem中,我添加了一个按钮,其操作选择器是UIWebViews goBack函数。当按下按钮时,一切都按照计划进行——UIWebView向后导航(包括奇特的jQuery移动转换)

问题在于,由于jQuery Mobile在导航到不同页面时使用了某种“内部链接”(将/newPage/url.html添加到url),因此在加载同一jQuery Mobile驱动站点中的页面时,永远不会调用UIWebViewDelegate函数webViewDidStartLoad

有没有人对如何让jQuery移动页面启动委托功能提出建议?可能需要保持转换。如果这是不可能的,是否有人对任何其他能够做到这一点的“web应用程序框架”有建议(代理调用+转换)

谢谢

更新


也许我的问题和你的差不多,但我至少觉得我的问题更具体一点。如果您不同意,请留下评论:)

如果控件对hashchange(浏览器中模拟历史的方式)没有反应,那么除非控件发布javascript api,否则您将无法触发任何内容。这就是我所担心的。是否有人知道是否有jQuery-(mobile)-函数可以调用以加载当前页面(包括哈希符号后的路径)?通过使用它,我可能能够让一个计时器调用函数并注册页面更改。在某种意义上,控制器确实会对hashchange做出反应,但只是在它的历史被更新的意义上。但我不知道这是否真的有帮助。有人找到了解决办法吗?从iOS 5.1开始,这仍然是一个问题