I am on page 59 of tutorial three. I am creating the function below to change the title of a button. I am getting an error of finding nil. I am confused. getButton is declared with the value of false, and the button “getButton” has a title. Where else can nil be coming from?
func configureGetButton()
{ if updatingLocation {
getButton.setTitle(“Stop”, forState: .Normal)
} else {
getButton.setTitle(“Get My Location” , forState: .Normal)
}
}