How to create a mirror image of a label or any control?

I want to create a mirror image of the label or say some control and display it in the view. Is there a way to mirror the text of the label or the text of the button? thanks in advance...

+3
source share
1 answer

Assuming you are running iOS, you can set the UIView property transformto flip it, for example:

// this sets the view y scale to -1, flipping it vertically
label.transform = CGAffineTransformMakeScale(1, -1);

Details on this feature and other similar features can be found on the CGAffineTransform reference page .

, , . , , .

+6

Source: https://habr.com/ru/post/1764827/


All Articles