1

I am developing an app in which there is a requirement in which there is a text in text view. I have to give mirror effect to that text view text. I am searching on Google but can't find any solution.

How can I solve it? Thanks in advance.

1
  • I have tried to rotate text view.but logically its not right.Actually,I want to give mirror effect to text.
    – Vishal
    Sep 25, 2012 at 11:50

3 Answers 3

2

Add a UILabel right beneath the text field. Apply a scale transformation to mirror it. Scale the y axis by -1 and the x axis by 1. Then all you have to do is update the text in the label every time the text field changes.

1
  • Please explain a little bit more.I can't understand.
    – Vishal
    Sep 25, 2012 at 11:55
2

Check out this Demo project. It has what you want.

1
  • Link is outdated.
    – arlomedia
    Jun 19, 2020 at 19:36
1

I wrote a blog post awhile ago that uses a view's CAReplicatorLayer. It's designed for handling dynamics updates to a view with reflection. The post uses a UIWebView, but you could just use a UITextView instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.