Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

How to restrict the cursor minimum position in swift using caretRectForPosition method or any other method. Suppose, I have a textview with some content and if the user is trying to move the cursor before 3rd position it should not move. How's this possible? Read few articles on it but doesn't answer to my problem.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.