0

I have a view with a bottom toolbar and a UIWebview that is loading an HTML page with some textboxes. Is there anyway when the user clicks on a textbox, the keyboard appears above the toolbar, that way it doesn't hide its buttons?

swiftBoy
  • 35,607
  • 26
  • 136
  • 135
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556

1 Answers1

1

You shouldn't try to change the keyboard's location, even if you could. That would be a usability disaster.

Instead, try to move the toolbar above the keyboard if you want to keep it visible.

Can Berk Güder
  • 109,922
  • 25
  • 130
  • 137
  • The UIWebView keyboard shows "Previous/Next" buttons in a toolbar right above it. Is there any way I can add my own buttons there? – Sheehan Alam Apr 01 '10 at 21:00
  • Well, yes and no. You can search the UIView hierarchy to find the toolbar and add your buttons, but I don't think it will fly with the App Store reviewers. – Can Berk Güder Apr 01 '10 at 21:34
  • This is just a proposed solution to a bigger problem. I'm unable to resign the keyboard from my UIWebView. I was hoping I could build a toolbar with a Done button that would resign it. – Sheehan Alam Apr 02 '10 at 00:39
  • the toolbar above the default UIWebView keyboard already has a "Done" button that dismisses the keyboard. – Can Berk Güder Apr 02 '10 at 02:13
  • Maybe it is a limitation in the 3.2 SDK because my UIWebView does not have the Done button... – Sheehan Alam Apr 02 '10 at 03:52
  • that's really interesting because mine does, and I'm using 3.2, too. – Can Berk Güder Apr 02 '10 at 11:58