Sooo I m designing an iOS app and I want that when the return key is pressed in my iPhone it directs me to the next following text field, I have found a couple of similar questions, with excellent answers around but they all just happen to be in Obj-C and I'm looking for Swift code, now this is what I have up until now:
func textFieldShouldReturn(emaillabel: UITextField) -> Bool{
return true
}
it's placed in the file that's connected and controller to the UIViewController that contains the text fields, But I'm not sure if thats the right place. I'm basically new to swift, so explain every little step or i'll manage to mess it up somehow. Also I'm using the latest version of Xcode if that makes any difference.
Thanks in advance pals!!
Aucun commentaire:
Enregistrer un commentaire