I need to create custom keyboard for some TEdit in my (and only my) application for iOS8. Other edit`s need default iPad keyboard.
In Objective-C it`s look simple – just create UIView and assign it to myTextField.inputView (https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextField_Class/index.html#//apple_ref/occ/instp/UITextField/inputView).
How can i do it in FMX (Delphi XE7)?
Update.
UITextField declared in iOSapi.UIKit.pas and its corresponding control is TiOSNativeEdit in FMX.Edit.iOS.pas.
In TEdit its used in PresentationProxy property, but only if ControlType = Platform.
For example:
var
intf: UITextField;
begin
if edit1.PresentationProxy.HasNativeObject
and (edit1.PresentationProxy.NativeObject.QueryInterface(UITextField, intf) = S_OK) then
edit1.Text := ‘Success’
else
edit1.Text := ‘Failed’;
After get UITextField interface (i think) you can do something like this:
intf.setInputView(myCreatedUIView);
But… i use styled controls, so this method not right for me.
So I have to emulate a keyboard using TFrame, TLayout, etc…