uitextfield - Position cursor during editing

Asked

Viewed 38 times

0

I am doing a treatment for Uitextfied editing to format text as decimal with decimal separators and thousands. My question is how to always position the cursor in the right corner of the text field?

Grateful

1 answer

2

You can do this through the code:

[self.fieldValor setTextAlignment:NSTextAlignmentRight];

Or by Interface Builder, has this property:

inserir a descrição da imagem aqui

  • Paul, it wouldn’t be quite that. The idea is not to reposition the cursor during typing.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.