[Solved] I’m getting: Use of unresolved identifier ‘randomBallNumber1’; did you mean ‘randomBallNumber’? [closed]


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

solved I’m getting: Use of unresolved identifier ‘randomBallNumber1’; did you mean ‘randomBallNumber’? [closed]