Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Weather App with Swift (Retired) Pulling Data From the Web Creating a URL

Gregory Serfaty
Gregory Serfaty
37,140 Points

Convert int to string

Hi For the challenge we need to convert the courseID in string, i try to cast it, to put quote but nothing match, i have always the message " You need to convert the courseID variable to a string and use it when creating courseURL."

Some one have an idea?

Thx.

2 Answers

R J
R J
1,779 Points

Try this

String(CourseID)

Add

Let x = String(CourseID)

then substitute x in the code

Gregory Serfaty
Gregory Serfaty
37,140 Points

Really weird i do that after my post and now it is work so good Thx

R J
R J
1,779 Points

Keep in mind that the String in String(CourseID) is case sensitive

so string(CourseID) doesn't work

the first s in String must be upper case