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.
我想知道是否可以使用 X-WSSE 身份验证和 RestKit 通过 UIWebView 访问 html 页面?我正在考虑的只是将 HTTP 响应作为 NSData 获取,然后在 Web 视图中显示它,但我正在寻找一种更合适的方法。
如果您的下载内容是 HTML,我看不出 RestKit 将如何提供帮助。UIWebView有一个loadRequest:方法,所以你应该只创建一个NSURLRequest并设置 auth 标头,然后将它直接传递给 web 视图。
UIWebView
loadRequest:
NSURLRequest