3

I am having text which is more than the width of the UITextField. The text is getting truncated and dots are added at the end of the text. How can I achieve the functionality of EditText (in Android) where we can slide through the textfield if the text in the textfield is more than the width, without decreasing the font size.

Chandu
  • 695
  • 2
  • 12
  • 25

1 Answers1

0

If your textfield is not editable then it will be good to use UILabel inside UIScrollView.

  1. set the width of label equals to text size keeping height constant.
  2. set the content size of scrollview equals to label's size.

Hope this will work.

If you need code example, I can provide.

fibnochi
  • 1,113
  • 1
  • 9
  • 26