iOS Question Custom Keyboard

Yvon Steinthal

Active Member
Licensed User
Longtime User
Hi,

I am currently trying to add a custom keyboard in B4i for an iOS app.
So far i've figured that the keyboard is called upon the KeyboardStateChanged Event.

My question is simple, how can i forbid the keyboard to pop up, and instead show my custom
keyboard. (a custom panel with custom buttons basically...)

Any clues or advice would be appreciated.
 

Taha

Member
Licensed User
Longtime User
Thanks, but what is mytxt? I tried to set it to TextView but then nothing happens when textview is focused.
 
Upvote 0

narek adonts

Well-Known Member
Licensed User
Longtime User
It still gives the error:
B4X:
-[B4IArray nextResponder]: unrecognized selector sent to instance 0x1469b300
this is wrong

B4X:
Dim no as NativeObject=mytxt

No.setField("inputView", Array(myPanel))

It should be

B4X:
Dim no as NativeObject=mytxt

No.setField("inputView", myPanel)
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
this is wrong

B4X:
Dim no as NativeObject=mytxt

No.setField("inputView", Array(myPanel))

It should be

B4X:
Dim no as NativeObject=mytxt

No.setField("inputView", myPanel)

I corrected the code, now getting
B4X:
child view controller:<UICompatibilityInputViewController: 0x1553f090> should have parent view controller:Page (vc): Döviz Çevirici but requested parent is:<UIInputWindowController: 0x15baf000>

can it be a designer problem ? Maybe the panel should be parent of something ?
 
Upvote 0

Yvon Steinthal

Active Member
Licensed User
Longtime User
I did use

B4X:
Dim no asNativeObject=mytxt

No.setField("inputView", myPanel)

myPanel being my custom keyboard as a Panel.

However i must warn that there may be a different way to do this, or im making a mistake somewhere in my code, as the debug works fine, but the release is just crashing when i press certain keys on my custom keyboard...
 
Upvote 0

Yvon Steinthal

Active Member
Licensed User
Longtime User
I have succesfully used the iReleaseLogger and found it was because i had an infinite loop due to an object comparison.... in any case its solved by using the tag of each objects instead of their reference....
 
Upvote 0

jai

Active Member
Licensed User
Longtime User
I corrected the code, now getting
B4X:
child view controller:<UICompatibilityInputViewController: 0x1553f090> should have parent view controller:Page (vc): Döviz Çevirici but requested parent is:<UIInputWindowController: 0x15baf000>

can it be a designer problem ? Maybe the panel should be parent of something ?

Can you please share how this problem was resolved. I am facing the same issue.
 
Upvote 0
Top