• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How hidden the Keyboard in a UIWebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How hidden the Keyboard in a UIWebView


  • Subject: Re: How hidden the Keyboard in a UIWebView
  • From: Conrad Shultz <email@hidden>
  • Date: Tue, 15 Mar 2011 14:06:20 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/15/11 7:09 AM, Rodrigo Zanatta Silva wrote:
> Anyone have any idea? I am stuck... It's easy do this with
> UITextView, but the text field in a web page have less control. I
> really need a new idea, please, anyone give-me a idea??!?!?

Please be patient.  If no one responds, it's probably because they don't
have an idea either.

> 2011/3/14 Rodrigo Zanatta Silva <email@hidden>
>
>> I searched a lot, and all thing that hidden the keyboard is when
>> you are in a UITextField.
>>
>> This is the problem. I am in a UIWebView and the user click in a
>> text box in the web page, so the iOS open the keyboard. I can know
>> when the keyboard will show by the  UIKeyboardWillShowNotification.
>> But, I want to show another screen instead the keyboard.

Try not using a UIWebView?  This whole scheme sounds a bit fishy to
me... if you are interfacing with a web service, for example, you should
probably implement a native UI and use XML, JSON, etc. to talk the the site.

I do know that there are some reasons you would want to do this, such as
displaying a keypad for numeric entry.  This _ought_ to be handled with
XHTML's inputmode attribute, which MobileSafari doesn't support.

For any Apple engineers out there, I filed a bug a long time ago on
this... rdar://6404093

>> How can I hidden, or never show the keyboard. If the people cancel
>> my screen, than I want to keyboard appear. There are any class that
>> I can manager the keyboard? How can I do this:
>>
>> *[keyboard goWay]* and
>>
>> *[keyboard show]*

I have no special insights on this, but you might check out
http://stackoverflow.com/questions/792035/how-do-i-cancel-a-text-field-edit-in-a-uiwebview

This purports to let you lose the keyboard via defocusing in JavaScript.
 You would then probably need to present your own view for input on top
of/next to the UIWebView and write controller code to send it into the
UIWebView.

Also see
http://stackoverflow.com/questions/2749486/fill-uiwebview-textinput-with-custom-keyboard

Sounds like a huge headache to me, though, and again I question the
wisdom of what you are trying to do.  Perhaps you can elaborate on WHY
you need to this and someone on the list might offer a more robust and
probably simpler solution.

- --
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFNf9TMaOlrz5+0JdURAmJ3AJ0bBHozwjR4gboflOeyvJ3lBpXotgCeLC/y
pvvZ3U04Qt956lkho/e6Tmw=
=nZnY
-----END PGP SIGNATURE-----
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How hidden the Keyboard in a UIWebView
      • From: Rodrigo Zanatta Silva <email@hidden>
References: 
 >How hidden the Keyboard in a UIWebView (From: Rodrigo Zanatta Silva <email@hidden>)
 >Re: How hidden the Keyboard in a UIWebView (From: Rodrigo Zanatta Silva <email@hidden>)

  • Prev by Date: Count of records in an NSArrayController when associated NSTableView is filtered
  • Next by Date: crash in initWithCoder
  • Previous by thread: Re: How hidden the Keyboard in a UIWebView
  • Next by thread: Re: How hidden the Keyboard in a UIWebView
  • Index(es):
    • Date
    • Thread