iPhone - Adding a button to keyboard existing accessory view (keyboard from UIWebView) -


i'm searching way add button accessory view of keyboard, 1 comes when touching input field uiwebview, without using private functions or questionable tricks.

enter image description here

do know how may ?

note : know how may catch keyboard show/hide events. i'm asking how add button.

you can using uikeyboardwillshownotification uiwindow reference information :

[[nsnotificationcenter defaultcenter]  addobserver:self selector:@selector(keyboardwillshow:)  name:uikeyboardwillshownotification object:nil]; 

this notification raised when textfield even from uiwebview selected.

look @ apple keyboardaccessory sample code shows how this. sample code use uitextxxxx inputaccessoryview property, doubt able use. notification give enough information add accessory directly in view or on top uiwindow, , animating keyboard :

(gdb) po notification nsconcretenotification 0xb5a2190 {name = uikeyboardwillshownotification; userinfo = {     uikeyboardanimationcurveuserinfokey = 0;     uikeyboardanimationdurationuserinfokey = "0.300000011920929";     uikeyboardboundsuserinfokey = "nsrect: {{0, 0}, {320, 260}}";     uikeyboardcenterbeginuserinfokey = "nspoint: {160, 610}";     uikeyboardcenterenduserinfokey = "nspoint: {160, 350}";     uikeyboardframebeginuserinfokey = "nsrect: {{0, 480}, {320, 260}}";     uikeyboardframeenduserinfokey = "nsrect: {{0, 220}, {320, 260}}"; }} 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -