I have a UITextField that shrinks and expands as a user UITextField text. If the width of the text field reaches the width of the screen, I want it to be aligned right so that the user can see the last input characters. In other circumstances, I want it to be left aligned.
Since the maximum width of the text field is not quite the same with the screen, I need to find a way to check if it has characters from the visible area.
Anyway to achieve this?
ios objective-c uitextfield
Zhu Shengqi
source share