Is it possible for a UIWebView to save and autofill previously entered form values (e.g., username & password)?

后端 未结 1 1044
借酒劲吻你
借酒劲吻你 2020-11-30 19:53

I\'m building an iPhone app that is just a UIWebView of an existing mobile site that has a form-based login. When I login to the mobile site on iPhone Safari, I

相关标签:
1条回答
  • 2020-11-30 20:27

    From my looking I don't think there is an easy way to do it. Here is an idea of what might work though:

    • create your uiwebview
    • create a nsurlrequest
    • after your webview delegate page loaded function fires look in the request's http body
    • find the form for login (regex for common login forms?)
    • retrieve give the user the option to save it and then retrieve later
    0 讨论(0)
提交回复
热议问题