[ad_1]
UIImage(named:) wants a string not an array as an input parameter.
This name should be the name inside the asset’s file of the project.
You should use ballArray[randomBallNumber1]
0
[ad_2]
solved I’m getting: Use of unresolved identifier ‘randomBallNumber1’; did you mean ‘randomBallNumber’? [closed]