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

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift