Paul T.
Paul T.

Reputation: 5038

UITextfield doesn't show right part of the text (I see "..." symbols instead)

I have UIVIewController for chatting. I want to insert smile text into textfield. And I want the right part of the text to be always visible.

But when the textfield is not the first responder, I see "..." at the right part of the textfield. For me it would be better to see "..." at the left part of the textfield (or not to see it at all), because when user enters smiles, he need to see what he entered.

enter image description here

I tried self.textFieldMain.textAlignment = NSTextAlignmentRight; , but it didn't help

Update

For now the best idea I found is to set only right part of text to textfield when it's not the first responder and to set the whole text when it's the first responder. But may be there is a better solution?

Upvotes: 0

Views: 230

Answers (1)

Julian
Julian

Reputation: 9337

I think your question is very similar to the problems posted on SO earlier. Please take a look at those solutions:

It looks like there are nice workarounds for that case

Upvotes: 1

Related Questions