iOS Question Keyboard background color and animation

Discussion in 'iOS Questions' started by Semen Matusovskiy, Apr 24, 2019.

  1. Semen Matusovskiy

    Semen Matusovskiy Well-Known Member Licensed User

    Hi, guys --

    I noticed that keyboard has translucent background. How to make it opaque ?
    And relative question. Is it possible to prevent animation of keyboard ?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can change the keyboard appearance with the designer:
    (TextField or TextArea property)
    [​IMG]
    There are two options.

    You can disable most or all animations with:
    Code:
    Dim no As NativeObject
    no.Initialize(
    "UIView").RunMethod("setAnimationsEnabled:"Array(False))
     
  3. Semen Matusovskiy

    Semen Matusovskiy Well-Known Member Licensed User

    Erel --

    I made a small sample to demonstrate a problem. It's possible to see yellow color under keyboard.

    About animation. Where how to take UIView from UITextField ?
    Picture.PNG
     

    Attached Files:

    • 1.zip
      File size:
      2.2 KB
      Views:
      12
  4. Erel

    Erel Administrator Staff Member Licensed User

    This is how the keyboard looks in iOS. You can put a view behind it in you like when the keyboard appears.

    You don't take anything from the text field. This is a global setting.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice