# iOS Storyboards: Segues and More | raywenderlich.com

**URL:** <https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231>\
**Category:** 🎓 Courses & Articles\
**Created:** [October 16, 2019, 6:18pm UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231 "2019-10-16T18:18:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehabamer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ehabamer/32/109011_2.png) [@ehabamer](https://forums.kodeco.com/u/ehabamer)\
**Post date:** [October 16, 2019, 6:18pm UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/1 "2019-10-16T18:18:24Z")

</div>

In this tutorial, you’ll learn how to connect view controllers to a storyboard, programmatically trigger segues, control visual components and respond to the user interactions.

* * *
This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/5055396-ios-storyboards-segues-and-more](https://www.raywenderlich.com/5055396-ios-storyboards-segues-and-more)

---

<div class="post-metadata">

**Author:** ![kquick](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kquick/32/81494_2.png) [@kquick](https://forums.kodeco.com/u/kquick)\
**Post date:** [January 5, 2020, 6:23pm UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/2 "2020-01-05T18:23:33Z")

</div>

Hi,

Thanks for the amazing tutorials. I got so much further with my project with your tutorials than with any others I have watched!

I am modifying your project to make it fit my own, but I have one difference that seems to be causing me problems. On your players scene, you have stars as images that rate the player. I only want one image but I can’t seem to make the adjustment. My code is below:

![Screen Shot 2020-01-05 at 10.12.38 AM](https://files.chunter.kodeco.com/original/3X/7/2/72b6f10eb8d2dd1c252dfd020d07e6fc847e7188.png)

The error in the screen shot is the one I can’t seem to fix. I would appreciate any help you can give!  
Kathie

---

<div class="post-metadata">

**Author:** ![kquick](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kquick/32/81494_2.png) [@kquick](https://forums.kodeco.com/u/kquick)\
**Post date:** [January 5, 2020, 7:45pm UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/3 "2020-01-05T19:45:52Z")

</div>

I couldn’t attach any more screen shots, so here is the rest of my code that pertains to this image.

struct Location {  
var logo: UIImage?  
var info: String?  
var address: String?  
}

… and …

static func generateLocationData() → [Location} {  
return [  
Location(logo: image Literal, info: “information”, address: “address”)  
//other locations to follow  
]  
}

---

<div class="post-metadata">

**Author:** ![ehabamer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ehabamer/32/109011_2.png) [@ehabamer](https://forums.kodeco.com/u/ehabamer)\
**Post date:** [January 5, 2020, 10:33pm UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/4 "2020-01-05T22:33:25Z")

</div>

Hello @kquick,  
I’m delighted to know this tutorial helped you out a lot :]

From the screenshot I can’t spot a problem but I have a feeling that this is one of the cases xcode is just showing an error but not where the problem actually is.  
Any chance I can see the project? ( I mainly need to see the file where `Location` class is defined.

Note: I’m assuming that the static function you wrote above has a typo the brackets:  
 → [Location} should be → [Location] (notice the closing bracket) but I suppose its just a typo

---

<div class="post-metadata">

**Author:** ![kquick](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kquick/32/81494_2.png) [@kquick](https://forums.kodeco.com/u/kquick)\
**Post date:** [January 5, 2020, 11:55pm UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/5 "2020-01-05T23:55:07Z")

</div>

I noticed the typo as soon as I sent it off to you!! I do have a bracket in my actual code.

Can I email my project to you? Thanks for being willing to help.

---

<div class="post-metadata">

**Author:** ![ehabamer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ehabamer/32/109011_2.png) [@ehabamer](https://forums.kodeco.com/u/ehabamer)\
**Post date:** [January 6, 2020, 11:14am UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/6 "2020-01-06T11:14:34Z")

</div>

Sure :] I sent you my email in a message.

---

<div class="post-metadata">

**Author:** ![roganjoshg](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/roganjoshg/32/81494_2.png) [@roganjoshg](https://forums.kodeco.com/u/roganjoshg)\
**Post date:** [March 18, 2020, 9:13am UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/7 "2020-03-18T09:13:02Z")

</div>

Dear Ehab,

Thank you for a great article! It was a brilliant way to explore segues and having a variety of different view controllers.

One question - how can you change the star rating of a new player? I don’t seem to have the functionality for that. Did I miss something; if not, could this be coded in so that the star rating is chosen for a new player?

Many thanks and much appreciated,

Josh

---

<div class="post-metadata">

**Author:** ![ehabamer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ehabamer/32/109011_2.png) [@ehabamer](https://forums.kodeco.com/u/ehabamer)\
**Post date:** [March 18, 2020, 8:16pm UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/8 "2020-03-18T20:16:18Z")

</div>

Hello Josh,  
Its a pleasure to know you liked the article, its always good to hear positive feedback :]

The rating value is currently not set for new players, you didn’t miss anything. And I didn’t go through that to keep the article short(er) and focused.

in `PlayerDetailsViewController.prepare(for:sender:)` you can see the rating is always sent with a value of `1`. You can build the UI you need to have an initial rating value in `PlayerDetailsViewController` and then pass the value selected instead of the hardcoded value there.

---

<div class="post-metadata">

**Author:** ![roganjoshg](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/roganjoshg/32/81494_2.png) [@roganjoshg](https://forums.kodeco.com/u/roganjoshg)\
**Post date:** [March 19, 2020, 4:48pm UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/9 "2020-03-19T16:48:02Z")

</div>

Dear Ehab,

Many thanks for the speedy reply! Glad to know that it wasn’t something I missed - I will check out how to add that in.

Best wishes,

Josh

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 5, 2020, 1:29pm UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/10 "2020-07-05T13:29:53Z")

</div>

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 5, 2020, 1:30pm UTC](https://forums.kodeco.com/t/ios-storyboards-segues-and-more-raywenderlich-com/85231/11 "2020-07-05T13:30:03Z")

</div>

Closed on July 5, 2020, 1:30pm UTC


