Hi, i made a post before about the centering of a switch.
i noticed that the switch is positioned in the top left corner of his hitbox.
I need to center it.
So the only way, i think, is to make the hitbox height (and width) equal to the effective height (and width) of the ios switch.
There is a way to retrive this information from the native language?
i found this on internet but i don't know Objective C, and i don't know if this is useful
from here: https://stackoverflow.com/questions...ght-and-width-of-a-uiview-accurately/18213965
Thanks
i noticed that the switch is positioned in the top left corner of his hitbox.
I need to center it.
So the only way, i think, is to make the hitbox height (and width) equal to the effective height (and width) of the ios switch.
There is a way to retrive this information from the native language?
i found this on internet but i don't know Objective C, and i don't know if this is useful
B4X:
CGFloat selfHeight=self.view.bounds.size.height;
CGFloat selfWidth=self.view.bounds.size.width;
CGFloat boxHeight=box.bounds.size.height;
CGFloat boxWidth=box.bounds.size.width;
from here: https://stackoverflow.com/questions...ght-and-width-of-a-uiview-accurately/18213965
Thanks