-1

I'm following along with one of Angela Yu's courses, I've been copying her step by step and both of our code is identical however when she runs this in the simulator the first die increases from 1 and the second die decreases from 5 however when I run this the second die doesn't change at all, please let me know if i'm missing something here!

Image1

3
  • Check if diceImageView2 is actually connected to the right image view in the storyboard ? Mar 20, 2022 at 7:52
  • Thank you, I went over the storyboard and fixed the images. Please submit as an answer so I can accept it!
    – Cody Fox
    Mar 20, 2022 at 8:48
  • 1
    Please provide enough code so others can better understand or reproduce the problem.
    – Community Bot
    Mar 20, 2022 at 20:22

1 Answer 1

0

From the looks of things, code and logic wise everything seems to be in order.

Most probably diceImageView2 is not wired up properly as an outlet from your storyboard so that would be the first place I'd check.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.