Tutorial 1: Random number displaying "..." instead of a random number


I am currently going through the Tutorial 1, trying to recreate the Bulls Eye Game.

However, after finishing page 70 and trying to run the app, it will sometimes display “…” as the number i am supposed to hit.

So it will say: Put the Bull’s Eye as close as you can to: …

More often than not, it will display a number for me to hit, but it will display “…” in many rounds.

I have crosschecked my code with the one supplied, and i simply cannot find the issue.



Figured it out. Turns out the label box needed to be wider to be able to contain all numbers. A simple stretch of the box solved the issue.

Yep, if the text becomes too big for the label, UIKit will truncate it with …