Swift does not arrow the text in Uitextfiled after upgraded to Swift 3

Asked

Viewed 39 times

0

I updated the XCode for Swift 3 last week and he converted all my code to the version of Swift 3. After that I’m trying to set the text inside a UITextField and it doesn’t work. I’ve already redid all the connections from UI with the code but does not work.

When I type inside the UITextFiled appears, but when I try to set the text programmatically does not appear.

@IBOutlet weak var codigoTextField: UITextField!

codigoTextField.text = "3654"
  • If you can, send the complete code of your Viewcontroller that makes it easier to understand what is happening.

  • I did some tests creating a new project and everything works normally. It seems that there was some problem at the time of export to version 3 of Swift

1 answer

0


I don’t know what happened, but I rebuilt the entire user interface and redid all the connections. Now it worked.

Browser other questions tagged

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