iPhone UIWebView - Can auto complete be turned off on a input text field?

后端 未结 2 1984
刺人心
刺人心 2021-01-04 05:57

I\'ve searched high & low for an answer on this and I can\'t seem to find an answer or anybody else having the same issue. Hope some one can assist?

I have a we

2条回答
  •  误落风尘
    2021-01-04 06:29

    Seems like Apple have some documentation now:

    Although the UIWebView class does not support the UITextInputTraits protocol directly, you can configure some keyboard attributes for text input elements. For example, you can include autocorrect and auto-capitalization attributes in the definition of an input element to specify the keyboard’s behaviors, as shown in the following example.

       
    

    You can also control which type of keyboard is displayed when a user touches a text field in a web page. To display a telephone keypad, an email keyboard, or a URL keyboard, use the tel, email, or url keywords for the type attribute on an input element, respectively. To display a numeric keyboard, set the value of the pattern attribute to "[0-9]" or "\d".

    These keywords and the pattern attribute are part of HTML 5, and are available in iOS 3.1 and later. The following list shows how to display each type of keyboard, including the standard keyboard.

    Text:

    Telephone:

    URL:

    Email:

    Zip code:

    http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html#Configuring the Keyboard for Web Views

提交回复
热议问题