Posts by Luiz Dias • 101 points
1 post
-
0
votes1
answer62
viewsA: Declared variable in viewDidLoad not found in Button - Swift 2
What is possibly occurring is a scope problem: A variable (or a constant let) declared in the body of a function will only be accessible within it (in this case, from func viewDidLoad()). By moving…