In order to better arrange the restricted screen area which is available when a keyboard is activated, is there any function or script which can return the top of such keyboard, i.e. the number of pixels from the top of the card (which appears to be different on various models of iPhones or iPads).
Thanks for any assistance.
Display layout when keyboard is activated
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 40
- Joined: Sun Jan 24, 2010 10:34 pm
- Location: French Atlantic Island
Re: Display layout when keyboard is activated
Hello Sailor,
not directly, but you can check "the effective screenrect" and do a little math
to find out the dimensions of the keyboard. From the docs about "screenrect":
...
Adding the effective adjective to either form returns the area of the screen the application has to itself.
In particular, if the keyboard is activated, it take into account if the keyboard is taking up space on the screen.
(Android and iOS only)
...
Best
Klaus
not directly, but you can check "the effective screenrect" and do a little math
to find out the dimensions of the keyboard. From the docs about "screenrect":
...
Adding the effective adjective to either form returns the area of the screen the application has to itself.
In particular, if the keyboard is activated, it take into account if the keyboard is taking up space on the screen.
(Android and iOS only)
...
Best
Klaus
-
- Posts: 40
- Joined: Sun Jan 24, 2010 10:34 pm
- Location: French Atlantic Island
Re: Display layout when keyboard is activated
So simple !
I actually used "the effective working screenRect" and it works fine.
Thanks Klaus !
I actually used "the effective working screenRect" and it works fine.
Thanks Klaus !