hy guys am a little bit stuck in some point can some one help me?
- no appearance of second cards when i flip it .
- two card flipped when i select on cell
this is my code screenshot
thank y very much
hy guys am a little bit stuck in some point can some one help me?
this is my code screenshot
thank y very much
In your CardModel.swift file, remove the spaces where you assign the card number to cardOne.imageName
and cardTwo.imageName
. ie, it should look like this:
cardOne.imageName = "card\(randomNo)"
cardTwo.imageName = "card\(randomNo)"
Look at your assets folder and you will see that the cards are named card1, card2, card3, … card13
so in order for the cards to be selected from the assets group you need to have the randomNo appended without any spaces.
thank y sir it’s helped