Search code examples
iosdelphikeyboardfiremonkey

How can I remove the Form Assistant from iOS keyboard?


When loading the iOS keyboard in Delphi Seattle, every call to the keyboard reproduces this weird effect on it's Platform Assistant:

enter image description here

Steps to reproduce


1 - Create a FMX Multiplatform application with an TEdit.

2 - Launch your application at your iOS device.

3 - Click on TEdit.


Does anybody have any idea how can we fix it?

This is definately not the way keyboard works on iOS.

I have tested this condition on iPhone 5, iPhone 5s and iPhone 6s.


Solution

  • Use IFMXVirtualKeyboardToolbarService service:

    var
      VKToolbarService: IFMXVirtualKeyboardToolbarService;
    begin
      TPlatformServices.Current.SupportsPlatformService(IFMXVirtualKeyboardToolbarService, IInterface(VKToolbarService));
    if VKToolbarService <> nil then
      VKToolbarService.SetToolbarEnabled(False);