Fatal error: unexpectedly found nil while unwrapping an Optional value uitextfield

Solution:

If it says optional value accessing then first you have to check that your outlet to the textField is connected or not in storyboard.

If it was connected then check that select the textfield and check if one or more outlets are connected to the single textfield.

One more if you copied the textfield from other project and unfortunately delete the outlet in the code then also the error came.So double check it with only the outlet issue.

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift