Group Group Group Group Group Group Group Group Group

Your First iOS App - Part 26: Challenge: | Ray Wenderlich Videos

#1

Practice some coding basics by modifying Bull's Eye to display the player's total score.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5993-your-first-ios-app/lessons/26
#2

I was following along with the video and my game simulated started crashing, it said this:


can you please help.

#3

Your slider outlet is not hooked up to the storyboard. It has an open circle next to it, unlike the filled ones next to the targetLabel and scoreLabel outlets, and the showHitMeAlert() func. The code is breaking on the line with slider.value.rounded(), because slider is nil.

You should be able to fix it on the storyboard, hooking it up the same way you did the other two outlets.

#4

The player’s total score is not being awarded the bonus points for Perfect or <5. I checked your Xcode project and it doesn’t award the bonus points either. Solution?

#5

@willpugh What errors do you get exactly?