Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们如何获得 UIWebView 的坏转发列表中的列表项数?我想做的是当后退列表为空时(即没有返回链接时)导航到前一个控制器。所以想知道列表中的计数。
提前致谢
萨亚利
您不想为此访问后向列表,只需使用 .canGoBack 属性。无论如何,这是这样做的方法(小心,这里是私有API):
id webview111 = [self _documentView]; /// self - uiwebview subclass coreWebV = [webview111 webView]; backForwardList = [coreWebV backForwardList];