How we can use userInteractionEnabled in (number.name) for number only?

I have number.name array like 1.go, 2.java, 3.swift etc..and I do not want to edit the number again, user will only change name. Is it possible?

  if words.count == 24 {
        for (index, textField) in textFields.enumerated() {
          textField.delegate = self
          textField.firstDesign()
          textField.text = "\(index + 1). \(words[index])"
          mneArr.append(words[index])
        }
Answered by Claude31 in 681560022

I see you just posted the question, but with different issue on S.O.

.enabled is a property of the complete textField, not a part of text. What is the problem with the solution I proposed ?

Your question is imprecise.

 I do not want to edit the number again

not edit when what happens ?

What is the code you present ? Where is it placed ? What is firstDesign() ?

SO please explain the context and your goal more clearly.

So, the best is probably to display the names in 2 labels, next to each other.

One for the number, that will not be editable (interaction disabled) and the other for the nam itself, editable (interaction enabled).

Format the number label on the right, to get a clean display as 1. Java and not 1.     Java

Accepted Answer

I see you just posted the question, but with different issue on S.O.

.enabled is a property of the complete textField, not a part of text. What is the problem with the solution I proposed ?

How we can use userInteractionEnabled in (number.name) for number only?
 
 
Q