views:

127

answers:

1

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?

+1  A: 

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
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
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
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
the toolbar above the default UIWebView keyboard already has a "Done" button that dismisses the keyboard.
Can Berk Güder
Maybe it is a limitation in the 3.2 SDK because my UIWebView does not have the Done button...
Sheehan Alam
that's really interesting because mine does, and I'm using 3.2, too.
Can Berk Güder