Build error

I am getting an error in my code however cannot figure out the change to make

the error is on the line for "code" however xcode is putting it there by default if I remove it i get another error.





func textFieldShouldReturn(_ textField: UITextField) -> Bool {

code

/

textField.resignFirstResponder()

return true

func textFieldDidEndEditing(_ TextField: UITextField UITextField)

MealNameLabel.text = textField.text




The second error is the textfielddidendediting line.


the both error messages are "editor placeholder in source file"




Can anyone assist with this line of code I can't seem to figure it out.

Replies

OKay I fixed the second error I just erased it and re-did it typed it out fully instead of using the code completion.

it seems for whatever reason using the code completion caused the error for the same exact code I wrote in. but still having issues with the CODE the first error regardless if I remove it or add it the error still remains

OKay never mind I fixed it I just deleted it all and re did that part of code without using the code completion.


It seems the code completion caused most errors then actually helping and save time.


anyone else have issues with the code completion?

Can you show the exact and complete code that fails for

func textFieldShouldReturn(_ textField: UITextField) -> Bool {

What exact error message ?


Where (in which class) do you write this func ?