We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
使用
UIWebView
和实现 UIWebViewDelegate 协议。后退、前进、停止、刷新都很容易,唯一不能得到的就是一个准确的进度条。但您可以检测页面何时加载,并显示微调器或其他通用加载图形。如果您在
UIWebView
上方放置一个UIToolbar
,上面有相应的图标,并根据传递给UIWebViewDelegate
的消息启用/禁用/更新它们code> 实现,您可以轻松获得非常接近成熟浏览器的应用内体验。Most of the features that you want are fairly trivial to implement using a
UIWebView
and a class that implements the UIWebViewDelegate protocol. Back, forward, stop, and refresh are all very easy, the only thing you can't get is an accurate progress bar. But you can detect when a page is loading and throw up a spinner or other generic loading graphic.If you place a
UIToolbar
above yourUIWebView
with the appropriate icons on it and enable/disable/update them according to the messages that get passed to yourUIWebViewDelegate
implementation you can easily get an in-app experience that very nearly approximates that of a full-fledged browser.